Blame sofort/ccenv/ccswitch.strs

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