forked from cksystemsgroup/scal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
53 lines (53 loc) · 1.21 KB
/
common.gypi
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
51
52
53
{
'variables': {
'default_cflags' : [
'-Wall',
'-Werror',
'-m64',
'-mcx16',
'-mtune=native',
'-ffast-math',
'-fno-builtin-malloc',
'-fno-builtin-calloc',
'-fno-builtin-realloc',
'-fno-builtin-free',
'-fno-omit-frame-pointer',
'-fno-exceptions',
],
'default_cflags_cc' : [
'-std=c++11',
'-fno-rtti',
],
'default_ldflags': [
'-Wl,--as-needed',
],
'default_libraries': [
'-lpthread',
'-lgflags',
],
},
'target_defaults': {
'configurations': {
'Debug': {
'cflags': [ '<@(default_cflags)', '-O0', '-gdwarf-2' ],
'cflags_cc': [ '<@(default_cflags_cc)' ],
'ldflags': [ '<@(default_ldflags)' ],
'defines': [ '__STDC_FORMAT_MACROS=1' ],
'include_dirs': [
'.',
'src',
]
},
'Release': {
'cflags': [ '<@(default_cflags)', '-O3' ],
'cflags_cc': [ '<@(default_cflags_cc)' ],
'defines': [ '__STDC_FORMAT_MACROS=1' ],
'ldflags': [ '<@(default_ldflags)' ],
'include_dirs': [
'.',
'src',
]
},
}
},
}