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