Blame sofort/ccenv/ccswitch.strs

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