60 |
BoolOption('usedebug', 'Do you want a debug build?', 'no'), |
BoolOption('usedebug', 'Do you want a debug build?', 'no'), |
61 |
BoolOption('usevtk', 'Do you want to use VTK?', 'yes'), |
BoolOption('usevtk', 'Do you want to use VTK?', 'yes'), |
62 |
('options_file', 'File of paths/options. Default: scons/<hostname>_options.py', options_file), |
('options_file', 'File of paths/options. Default: scons/<hostname>_options.py', options_file), |
63 |
|
('win_cc_name', 'windows C compiler name if needed', 'msvc'), |
64 |
# The strings -DDEFAULT_ get replaced by scons/<hostname>_options.py or by defaults below |
# The strings -DDEFAULT_ get replaced by scons/<hostname>_options.py or by defaults below |
65 |
('cc_flags', 'C compiler flags to use', '-DEFAULT_1'), |
('cc_flags', 'C compiler flags to use', '-DEFAULT_1'), |
66 |
('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'), |
('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'), |
135 |
|
|
136 |
if IS_WINDOWS_PLATFORM: |
if IS_WINDOWS_PLATFORM: |
137 |
env = Environment(tools = ['default', 'msvc'], options = opts) |
env = Environment(tools = ['default', 'msvc'], options = opts) |
138 |
|
#env = Environment(tools = ['default', 'intelc'], options = opts) |
139 |
else: |
else: |
140 |
if socket.gethostname().split('.')[0] == 'service0': |
if socket.gethostname().split('.')[0] == 'service0': |
141 |
env = Environment(tools = ['default', 'intelc'], options = opts) |
env = Environment(tools = ['default', 'intelc'], options = opts) |
183 |
omp_debug = "" |
omp_debug = "" |
184 |
omp_libs = [] |
omp_libs = [] |
185 |
pedantic = "" |
pedantic = "" |
186 |
|
elif env["CC"] == "icl": |
187 |
|
# intel C on Windows, see windows_msvc71_options.py for a start |
188 |
|
pedantic = "" |
189 |
|
|
190 |
# If not specified in hostname_options.py then set them here |
# If not specified in hostname_options.py then set them here |
191 |
if env["cc_flags"] == "-DEFAULT_1": env['cc_flags'] = cc_flags |
if env["cc_flags"] == "-DEFAULT_1": env['cc_flags'] = cc_flags |