Blame sofort/ccenv/ccswitch.strs

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