Blame sofort/ccenv/ccswitch.strs

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