Blame sofort/ccenv/ccswitch.strs

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