Blame sofort/ccenv/ccswitch.strs

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