added flags for ifort and gfortran to use preprocessor

This commit is contained in:
Martin Diehl 2012-02-09 13:30:59 +00:00
parent dced3f9430
commit a329a9b91d
1 changed files with 5 additions and 5 deletions

View File

@ -48,11 +48,11 @@ if options.compiler not in compilers:
parser.error('compiler switch "--F90" has to be one out of: %s'%(', '.join(compilers))) parser.error('compiler switch "--F90" has to be one out of: %s'%(', '.join(compilers)))
f2py_compiler = { f2py_compiler = {
'gfortran': 'gnu95 --f90flags="-fno-range-check"', 'gfortran': 'gnu95 --f90flags="-fno-range-check -xf95-cpp-input -std=f2008"',
'gnu95': 'gnu95 --f90flags="-fno-range-check"', 'gnu95': 'gnu95 --f90flags="-fno-range-check -xf95-cpp-input -std=f2008"',
'intel32': 'intel', 'intel32': 'intel --f90flags="-fpp -stand f03"',
'intel': 'intelem', 'intel': 'intelem --f90flags="-fpp -stand f03"',
'ifort': 'intelem', 'ifort': 'intelem --f90flags="-fpp -stand f03"',
}[options.compiler] }[options.compiler]
compiler = { compiler = {
'gfortran': 'gfortran', 'gfortran': 'gfortran',