summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv/ccswitch.strs
blob: 0a76f032e5b7cbce16ebbb75d9b2963d44e58327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ccswitch.strs: project-agnostic list of compiler switches,
# for which support is tested by default.

# when -foo is supported by the host or native compiler, add
# ``CFLAGS_foo = -foo'' to the respective ccenv variable file
# (that is, ccenv/host.mk or ccenv/native.mk).

# the make variable prefix is _CFLAGS_ or _NATIVE_CFLAGS_
# (_LDFLAGS_ or _NATIVE_LDFLAGS for -Wl, linker options),
# to which the compiler-switch, minus leading dashes and
# trailing equal-sign or comma, is appended; non-leading
# dashes and non-trailing equal-signs and commas are then
# substituted with underscores.

# the project-agnostic list below can be supplemented by a
# project-specific one, named project/config/ccswitch.strs.

# toolchain switches
-dumpmachine
-print-file-name=

# flavors and variants
-std=c89
-std=c99
-std=c11

# linker switches
-Wl,--print-map
-Wl,--no-undefined
-Wl,--verbose

# errors and warnings
-Wall
-Werror
-Wextra
-Wundef

# debugging
-g
-g0
-g1
-g2
-g3

# optimization
-O0
-O1
-O2
-O3
-Os