Sort FORTRAN std when using flang (#46922)

This commit is contained in:
AMD Toolchain Support 2024-10-14 03:00:21 +05:30 committed by GitHub
parent 81b41d5948
commit adb8f37fc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,11 +224,18 @@ def setup_build_environment(self, env):
@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,
},