Blame sofort/ccenv/ccswitch.strs

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