firasuke / cross / slibtool

Forked from cross/slibtool 3 months ago
Clone

Blame sofort/ccenv/ccswitch.strs

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