Blame sofort/ccenv/ccswitch.strs

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