-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSConstruct
More file actions
33 lines (22 loc) · 746 Bytes
/
SConstruct
File metadata and controls
33 lines (22 loc) · 746 Bytes
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
#-*-Python-*-
import os
import sys
compiler = ARGUMENTS.get('compiler','gcc')
if (compiler == 'gcc'):
env = Environment(CC='gcc', CXX='g++')
elif (compiler == 'icc'):
env = Environment(CC='icc', CXX='icpc')
elif (compiler == 'clang'):
env = Environment(CC='clang', CXX='clang++')
env.Append(ENV = {'PATH' : os.environ['PATH']})
env.Append(CCFLAGS='-Wall')
if (sys.platform != "darwin"):
env.Append(LIBS='rt')
debug = ARGUMENTS.get('debug', 0)
if int(debug):
env.Append(CCFLAGS = '-g -O0')
else:
env.Append(CCFLAGS='-O3')
env.Program('test_queries', ['matrix.cpp', 'oracle_monge_matrix.cpp', 'max_value.cpp',
'range.cpp', 'range_query.cpp', 'envelope.cpp', 'envelope_tree.cpp',
'tests.cpp', 'main.cpp'])