diff options
author | ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> | 2020-07-15 11:24:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 21:24:18 -0500 |
commit | 14f3f230c19771b2f337b260319267edc0f16f34 (patch) | |
tree | 4bfb234ea6717064a570bf6b1574530ddfe6a9e1 | |
parent | d32bbae431e1fb2c43a0d726a42d37773c707b87 (diff) | |
download | spack-14f3f230c19771b2f337b260319267edc0f16f34.tar.gz spack-14f3f230c19771b2f337b260319267edc0f16f34.tar.bz2 spack-14f3f230c19771b2f337b260319267edc0f16f34.tar.xz spack-14f3f230c19771b2f337b260319267edc0f16f34.zip |
scons: support Fujitsu Fortran moddir option (#17538)
-rw-r--r-- | var/spack/repos/builtin/packages/scons/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scons/package.py b/var/spack/repos/builtin/packages/scons/package.py index 328fa558ab..82b9bcd7d1 100644 --- a/var/spack/repos/builtin/packages/scons/package.py +++ b/var/spack/repos/builtin/packages/scons/package.py @@ -25,6 +25,15 @@ class Scons(PythonPackage): depends_on('python@:2', when='@:2', type=('build', 'run')) depends_on('py-setuptools', when='@3.0.2:', type='build') + def patch(self): + if self.spec.satisfies('%fj'): + filter_file( + 'env[\'FORTRANMODDIRPREFIX\'] = "-J"', + 'env[\'FORTRANMODDIRPREFIX\'] = "-M"', + 'engine/SCons/Tool/gfortran.py', + string=True + ) + # Prevent passing --single-version-externally-managed to # setup.py, which it does not support. @when('@3.0.2:') |