Blame sofort/ccenv/ccswitch.strs

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