Blame sofort/ccenv/ccswitch.strs

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