summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv/ccswitch.strs
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-04 14:27:27 +0000
committermidipix <writeonce@midipix.org>2021-06-04 19:47:09 +0000
commit5dc03c4b10f350691d781153b8aa994c6f93a5e7 (patch)
treeec382655652db26487762a10c53a5d0e3bd7e382 /sofort/ccenv/ccswitch.strs
parent282fe96a05198c8ed29d83a232d4d90f9a5f69f6 (diff)
downloadslibtool-5dc03c4b10f350691d781153b8aa994c6f93a5e7.tar.bz2
slibtool-5dc03c4b10f350691d781153b8aa994c6f93a5e7.tar.xz
build system: ccenv: added ccenv_set_cc_switch_vars().
Diffstat (limited to 'sofort/ccenv/ccswitch.strs')
-rw-r--r--sofort/ccenv/ccswitch.strs47
1 files changed, 47 insertions, 0 deletions
diff --git a/sofort/ccenv/ccswitch.strs b/sofort/ccenv/ccswitch.strs
new file mode 100644
index 0000000..f27fe62
--- /dev/null
+++ b/sofort/ccenv/ccswitch.strs
@@ -0,0 +1,47 @@
+# ccswitch.strs: project-agnostic list of compiler switches,
+# for which support is tested by default.
+
+# when -foo is supported by the host or native compiler, add
+# ``CFLAGS_foo = -foo'' to the respective ccenv variable file
+# (that is, ccenv/host.mk or ccenv/native.mk).
+
+# the make variable prefix is _CFLAGS_ or _NATIVE_CFLAGS_,
+# to which the compiler-switch, minus leading dashes and
+# trailing equal-sign or comma, is appended; non-leading
+# dashes and non-trailing equal-signs and commas are then
+# substituted with underscores.
+
+# the project-agnostic list below can be supplemented by a
+# project-specific one, named project/config/ccswitch.strs.
+
+# toolchain switches
+-dumpmachine
+-print-file-name=
+
+# flavors and variants
+-std=c89
+-std=c99
+-std=c11
+
+# linker switches
+-Wl,--no-undefined
+
+# errors and warnings
+-Wall
+-Werror
+-Wextra
+-Wundef
+
+# debugging
+-g
+-g0
+-g1
+-g2
+-g3
+
+# optimization
+-O0
+-O1
+-O2
+-O3
+-Os