Blame sofort/ccenv/ccswitch.strs

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