diff options
author | midipix <writeonce@midipix.org> | 2024-04-28 17:47:08 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-04-28 17:47:08 +0000 |
commit | 1b64c0ca9f6438c5bb35f34a46344030b61b789a (patch) | |
tree | c1c41b3abf8af0c8fb2484681a7ef0e9707913ef /sofort/ccenv/ccswitch.strs | |
parent | 646efeb80e90cdc80e35a337273943b6ba87bb6f (diff) | |
download | treebnf-1b64c0ca9f6438c5bb35f34a46344030b61b789a.tar.bz2 treebnf-1b64c0ca9f6438c5bb35f34a46344030b61b789a.tar.xz |
build system: imported sofort, a project-agnostic build system.
Diffstat (limited to 'sofort/ccenv/ccswitch.strs')
-rw-r--r-- | sofort/ccenv/ccswitch.strs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sofort/ccenv/ccswitch.strs b/sofort/ccenv/ccswitch.strs new file mode 100644 index 0000000..277e02e --- /dev/null +++ b/sofort/ccenv/ccswitch.strs @@ -0,0 +1,51 @@ +# 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_ +# (_LDFLAGS_ or _NATIVE_LDFLAGS for -Wl, linker options), +# 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,--print-map +-Wl,--no-undefined +-Wl,--verbose + +# errors and warnings +-Wall +-Werror +-Wextra +-Wundef +-Wpedantic + +# debugging +-g +-g0 +-g1 +-g2 +-g3 + +# optimization +-O0 +-O1 +-O2 +-O3 +-Os |