Blame sofort/ccenv/ccswitch.strs

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