Blame sofort/ccenv/ccswitch.strs

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