Sort FORTRAN std when using flang (#46922)
This commit is contained in:
parent
81b41d5948
commit
adb8f37fc5
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user