diff options
author | AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> | 2024-10-14 03:00:21 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 23:30:21 +0200 |
commit | adb8f37fc59dd88a7c56181d820a63f2b60585bb (patch) | |
tree | 4fdd4b481e19cf624166033fb68cc92d0c86f100 | |
parent | 81b41d5948007d5bd0e3952bf86df9bf83571941 (diff) | |
download | spack-adb8f37fc59dd88a7c56181d820a63f2b60585bb.tar.gz spack-adb8f37fc59dd88a7c56181d820a63f2b60585bb.tar.bz2 spack-adb8f37fc59dd88a7c56181d820a63f2b60585bb.tar.xz spack-adb8f37fc59dd88a7c56181d820a63f2b60585bb.zip |
Sort FORTRAN std when using flang (#46922)
-rw-r--r-- | var/spack/repos/builtin/packages/py-scipy/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index 50ac62ed0c..79bb27a1d6 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -224,11 +224,18 @@ class PyScipy(PythonPackage): @when("@1.9:") def config_settings(self, spec, prefix): blas, lapack = self.spec["py-numpy"].package.blas_lapack_pkg_config() + + if spec.satisfies("%aocc") or spec.satisfies("%clang@18:"): + fortran_std = "none" + else: + fortran_std = "legacy" + return { "builddir": "build", "compile-args": f"-j{make_jobs}", "setup-args": { # http://scipy.github.io/devdocs/building/blas_lapack.html + "-Dfortran_std": fortran_std, "-Dblas": blas, "-Dlapack": lapack, }, |