Blame sofort/ccenv/ccswitch.strs

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