Blame sofort/ccenv/ccswitch.strs

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