py-numcodecs: fix broken sse / avx2 variables (#40754)
This commit is contained in:
parent
a1282337c0
commit
2e097b4cbd
1 changed files with 5 additions and 4 deletions
|
@ -49,6 +49,7 @@ def setup_build_environment(self, env):
|
||||||
# This package likes to compile natively by checking cpu features and then setting flags
|
# This package likes to compile natively by checking cpu features and then setting flags
|
||||||
# -msse2 and -mavx2, which we want to avoid in Spack. This could go away if the package
|
# -msse2 and -mavx2, which we want to avoid in Spack. This could go away if the package
|
||||||
# supports external libraries.
|
# supports external libraries.
|
||||||
|
if self.spec.satisfies("target=x86_64:"):
|
||||||
if "avx2" not in self.spec.target.features:
|
if "avx2" not in self.spec.target.features:
|
||||||
env.set("DISABLE_NUMCODECS_AVX2", "1")
|
env.set("DISABLE_NUMCODECS_AVX2", "1")
|
||||||
if "sse2" not in self.spec.target.features:
|
if "sse2" not in self.spec.target.features:
|
||||||
|
|
Loading…
Reference in a new issue