Blame sofort/ccenv/ccswitch.strs

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