Blame sofort/ccenv/ccswitch.strs

2b8960
# ccswitch.strs: project-agnostic list of compiler switches,
2b8960
# for which support is tested by default.
2b8960
2b8960
# when -foo is supported by the host or native compiler, add
2b8960
# ``CFLAGS_foo = -foo'' to the respective ccenv variable file
2b8960
# (that is, ccenv/host.mk or ccenv/native.mk).
2b8960
49e7a5
# the make variable prefix is _CFLAGS_ or _NATIVE_CFLAGS_
49e7a5
# (_LDFLAGS_ or _NATIVE_LDFLAGS for -Wl, linker options),
2b8960
# to which the compiler-switch, minus leading dashes and
2b8960
# trailing equal-sign or comma, is appended; non-leading
2b8960
# dashes and non-trailing equal-signs and commas are then
2b8960
# substituted with underscores.
2b8960
2b8960
# the project-agnostic list below can be supplemented by a
2b8960
# project-specific one, named project/config/ccswitch.strs.
2b8960
2b8960
# toolchain switches
2b8960
-dumpmachine
2b8960
-print-file-name=
2b8960
2b8960
# flavors and variants
2b8960
-std=c89
2b8960
-std=c99
2b8960
-std=c11
2b8960
2b8960
# linker switches
3fcf11
-Wl,--print-map
2b8960
-Wl,--no-undefined
3fcf11
-Wl,--verbose
2b8960
2b8960
# errors and warnings
2b8960
-Wall
2b8960
-Werror
2b8960
-Wextra
2b8960
-Wundef
2b8960
2b8960
# debugging
2b8960
-g
2b8960
-g0
2b8960
-g1
2b8960
-g2
2b8960
-g3
2b8960
2b8960
# optimization
2b8960
-O0
2b8960
-O1
2b8960
-O2
2b8960
-O3
2b8960
-Os