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