-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathicl-linux2.scons
39 lines (27 loc) · 927 Bytes
/
icl-linux2.scons
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
import os
import re
opts = {'1' : '',
'2' : '-xHost',
'3' : '-xSSSE3 -axSSE4.2',
}
Import('env')
env.Append(CCFLAGS='-g -sox -wd177,304,383,869,981,1418,1572,2196')
env.Append(CXXFLAGS='-std=c++0x')
if env['debug']:
env.Prepend(CCFLAGS='-DDEBUG -debug full -Wall -ftrapuv')
if env['optimized']:
env.Append(CPPDEFINES = {'USE_RESTRICT' : 'restrict'})
env.Append(CPPDEFINES = 'x86_64')
env.Append(CCFLAGS='-Wall -O3 -no-prec-div -ansi-alias -ftz -DNDEBUG -restrict -fp-model fast=2 ') #-vec-report2
if env['profile']:
env.Append(CCFLAGS='-g')
env['boost'] = 'il'
env.Tool('icl', topdir = os.environ['PATH'])
env['SWIGCFILESUFFIX'] = '_wrap.icl$CFILESUFFIX'
env['SWIGCXXFILESUFFIX'] = '_wrap.icl$CXXFILESUFFIX'
env['no_exception_flag'] = ['-fno-exceptions', ]
Export('env')
env = SConscript('common.scons')
Export('env')
env = SConscript('boost-linux2.scons')
Return('env')