75 |
BoolOption('useopenmp', 'Compile parallel version using OpenMP', 'yes'), |
BoolOption('useopenmp', 'Compile parallel version using OpenMP', 'yes'), |
76 |
BoolOption('usepedantic', 'Compile with -pedantic if using gcc', 'no'), |
BoolOption('usepedantic', 'Compile with -pedantic if using gcc', 'no'), |
77 |
BoolOption('usewarnings','Compile with warnings as errors if using gcc','yes'), |
BoolOption('usewarnings','Compile with warnings as errors if using gcc','yes'), |
78 |
|
('forcelazy','for testing use only - set the default value for autolazy','leave_alone'), |
79 |
# Python |
# Python |
80 |
('python_path', 'Path to Python includes', '/usr/include/'+python_version), |
('python_path', 'Path to Python includes', '/usr/include/'+python_version), |
81 |
('python_lib_path', 'Path to Python libs', usr_lib), |
('python_lib_path', 'Path to Python libs', usr_lib), |
221 |
if env["omp_debug"] == "-DEFAULT_5": env['omp_debug'] = omp_debug |
if env["omp_debug"] == "-DEFAULT_5": env['omp_debug'] = omp_debug |
222 |
if env["omp_libs"] == "-DEFAULT_6": env['omp_libs'] = omp_libs |
if env["omp_libs"] == "-DEFAULT_6": env['omp_libs'] = omp_libs |
223 |
|
|
224 |
|
#set up the autolazy values |
225 |
|
if env['forcelazy'] != "leave_alone": |
226 |
|
if env['forcelazy'] == 'on': |
227 |
|
env.Append(CPPDEFINES='FAUTOLAZYON') |
228 |
|
else: |
229 |
|
if env['forcelazy'] == 'off': |
230 |
|
env.Append(CPPDEFINES='FAUTOLAZYOFF') |
231 |
|
|
232 |
# OpenMP is disabled if useopenmp=no or both variables omp_optim and omp_debug are empty |
# OpenMP is disabled if useopenmp=no or both variables omp_optim and omp_debug are empty |
233 |
if not env["useopenmp"]: |
if not env["useopenmp"]: |
234 |
env['omp_optim'] = "" |
env['omp_optim'] = "" |