-
Notifications
You must be signed in to change notification settings - Fork 2
/
binding.gyp
57 lines (57 loc) · 1.27 KB
/
binding.gyp
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
54
55
56
57
{
'variables': {
'llvm_config': 'llvm-config',
},
'targets': [
{
'target_name': 'llvm',
'sources': [
'./src/llvm.cc',
'./src/basicblock.cc',
'./src/context.cc',
'./src/irbuilder.cc',
'./src/module.cc',
'./src/value.cc',
'./src/function.cc',
'./src/type.cc',
'./src/functiontype.cc',
'./src/executionengine.cc',
'./src/functionpassmanager.cc',
'./src/instructions.cc',
],
'cflags': [
'-O3',
'-Wall',
'-Werror'
],
'cflags_cc': [
'-O3',
'-Wall',
'-Werror',
'-std=c++0x',
'-g',
],
'defines': [
'__STDC_LIMIT_MACROS=1',
'__STDC_CONSTANT_MACROS=1'
],
'include_dirs+': [
'src/',
'<!@(<(llvm_config) --includedir)'
],
'libraries': [
'<!@(<(llvm_config) --ldflags)',
'<!@(<(llvm_config) --libs core jit native)'
],
'conditions': [
[ 'OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++'],
'OTHER_LDFLAGS': ['-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.7'
},
}]
]
}
]
}