Skip to content
Snippets Groups Projects
Commit 4481e9a2 authored by Boman Romain's avatar Boman Romain
Browse files

compilation debug (luc)

parent a747f559
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ class CompJob(ParametricJob):
exe='bin/Metafor'
dflag=''
if self.pars['DEBUG_MODE'].val:
dflag='-DCMAKE_BUILD_TYPE=Debug'
dflag='-D CMAKE_BUILD_TYPE=Debug'
# first check
if not os.path.isdir('oo_meta'):
self.error('oo_meta not here!')
......@@ -180,7 +180,7 @@ class CompJob(ParametricJob):
# compile
ncpu = int(self.pars['NB_TASKS'].val) * int(self.pars['NB_THREADS'].val)
print 'compiling %s using %s cpu(s) (have a coffee)' % (exe, ncpu)
os.system('make -j %d %s >compile.log 2>&1' % (ncpu, dflag))
os.system('make -j %d >compile.log 2>&1' % (ncpu))
# check exe
if os.path.isfile(exe) and os.access(exe, os.X_OK):
msg='compilation of %s OK' % exe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment