Blame sofort/ccenv/ccswitch.strs

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