09157951638 / compilers / bcparser

Forked from compilers/bcparser a year ago
Clone

Blame sofort/ccenv/ccswitch.strs

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