translating command line options for compiler name to actual name of executable
This commit is contained in:
parent
c54600fd1f
commit
8b572ff4c5
|
@ -54,6 +54,13 @@ f2py_compiler = {
|
||||||
'intel': 'intelem',
|
'intel': 'intelem',
|
||||||
'ifort': 'intelem',
|
'ifort': 'intelem',
|
||||||
}[options.compiler]
|
}[options.compiler]
|
||||||
|
compiler = {
|
||||||
|
'gfortran': 'gfortran',
|
||||||
|
'gnu95': 'gfortran',
|
||||||
|
'intel32': 'ifort',
|
||||||
|
'intel': 'ifort',
|
||||||
|
'ifort': 'ifort',
|
||||||
|
}[options.compiler]
|
||||||
|
|
||||||
damaskEnv = Environment()
|
damaskEnv = Environment()
|
||||||
baseDir = damaskEnv.relPath('processing/')
|
baseDir = damaskEnv.relPath('processing/')
|
||||||
|
@ -141,8 +148,8 @@ for dir in compile:
|
||||||
print 'removing %s.exe '%(os.path.splitext(src)[0])
|
print 'removing %s.exe '%(os.path.splitext(src)[0])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
print 'compiling ',src,'using',options.compiler
|
print 'compiling ',src,'using',compiler
|
||||||
os.system('%s -O2 -o%s.exe %s'%(options.compiler,os.path.splitext(src)[0],src))
|
os.system('%s -O2 -o%s.exe %s'%(compiler,os.path.splitext(src)[0],src))
|
||||||
|
|
||||||
os.chdir(codeDir) # needed for compilation with gfortran and f2py
|
os.chdir(codeDir) # needed for compilation with gfortran and f2py
|
||||||
for tasks in execute:
|
for tasks in execute:
|
||||||
|
|
Loading…
Reference in New Issue