From 793ffd8d9cc8c2ce0c13b3bd84c58860fb242822 Mon Sep 17 00:00:00 2001 From: Tom Payerle Date: Sat, 10 Oct 2020 22:07:04 -0400 Subject: cpio: Fix issue compiling with newer intel compilers (#18854) (#18855) * cpio: Fix issue compiling with newer intel compilers (#18854) Do not add --no-gcc for recent intel compilers (e.g. 20.x) * cpio: Remove --no-gcc flag for intel@19 as well as intel@20 Based on comments from @nrichart, removing --no-gcc option for intel@19 as well as intel@20 --- var/spack/repos/builtin/packages/cpio/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/cpio/package.py b/var/spack/repos/builtin/packages/cpio/package.py index 2e6f6f49bf..f454882457 100644 --- a/var/spack/repos/builtin/packages/cpio/package.py +++ b/var/spack/repos/builtin/packages/cpio/package.py @@ -23,7 +23,7 @@ class Cpio(AutotoolsPackage, GNUMirrorPackage): spec = self.spec if name == 'cflags': - if '%intel' in spec: + if '%intel@:18.999' in spec: flags.append('-no-gcc') elif '%clang' in spec or '%fj' in spec: -- cgit v1.2.3-70-g09d2