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