mvapich2: Fix mpifort wrapper (#4650)
This commit is contained in:
parent
cabcfb032f
commit
2e6a735b00
@ -235,6 +235,7 @@ def filter_compilers(self):
|
|||||||
mpicxx = join_path(bin, 'mpicxx')
|
mpicxx = join_path(bin, 'mpicxx')
|
||||||
mpif77 = join_path(bin, 'mpif77')
|
mpif77 = join_path(bin, 'mpif77')
|
||||||
mpif90 = join_path(bin, 'mpif90')
|
mpif90 = join_path(bin, 'mpif90')
|
||||||
|
mpifort = join_path(bin, 'mpifort')
|
||||||
|
|
||||||
# Substitute Spack compile wrappers for the real
|
# Substitute Spack compile wrappers for the real
|
||||||
# underlying compiler
|
# underlying compiler
|
||||||
@ -243,8 +244,9 @@ def filter_compilers(self):
|
|||||||
filter_file(env['CXX'], self.compiler.cxx, mpicxx, **kwargs)
|
filter_file(env['CXX'], self.compiler.cxx, mpicxx, **kwargs)
|
||||||
filter_file(env['F77'], self.compiler.f77, mpif77, **kwargs)
|
filter_file(env['F77'], self.compiler.f77, mpif77, **kwargs)
|
||||||
filter_file(env['FC'], self.compiler.fc, mpif90, **kwargs)
|
filter_file(env['FC'], self.compiler.fc, mpif90, **kwargs)
|
||||||
|
filter_file(env['FC'], self.compiler.fc, mpifort, **kwargs)
|
||||||
|
|
||||||
# Remove this linking flag if present
|
# Remove this linking flag if present
|
||||||
# (it turns RPATH into RUNPATH)
|
# (it turns RPATH into RUNPATH)
|
||||||
for wrapper in (mpicc, mpicxx, mpif77, mpif90):
|
for wrapper in (mpicc, mpicxx, mpif77, mpif90, mpifort):
|
||||||
filter_file('-Wl,--enable-new-dtags', '', wrapper, **kwargs)
|
filter_file('-Wl,--enable-new-dtags', '', wrapper, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user