From 42c3782f7e9675c2f4196bac5106006a50b1460c Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Wed, 24 Jul 2019 11:17:12 -0500 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/c-blosc/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/c-blosc/package.py b/var/spack/repos/builtin/packages/c-blosc/package.py index 8d19a7466d..0ce7bbe113 100644 --- a/var/spack/repos/builtin/packages/c-blosc/package.py +++ b/var/spack/repos/builtin/packages/c-blosc/package.py @@ -35,6 +35,10 @@ class CBlosc(CMakePackage): def cmake_args(self): 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: args.append('-DDEACTIVATE_AVX2=OFF') else: