Do not build c-blosc test if intel in spec (#12110)

While the c-blosc library compiles with icc some of the c-blosc tests do
not. Disable the tests so that the spack build can continue.
This commit is contained in:
Glenn Johnson 2019-07-24 11:17:12 -05:00 committed by Adam J. Stewart
parent 0d690edfb2
commit 42c3782f7e

View file

@ -35,6 +35,10 @@ class CBlosc(CMakePackage):
def cmake_args(self): def cmake_args(self):
args = [] args = []
# Some of the tests do not build with icc.
if '%intel' in self.spec:
args.append('-DBUILD_TESTS=OFF')
if '+avx2' in self.spec: if '+avx2' in self.spec:
args.append('-DDEACTIVATE_AVX2=OFF') args.append('-DDEACTIVATE_AVX2=OFF')
else: else: