summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2020-03-11 18:35:10 -0600
committerGitHub <noreply@github.com>2020-03-11 19:35:10 -0500
commit3e8f873b03a6f696ddf999990466fa6e38fc3b85 (patch)
tree2d9c74b51727eb59d823972e95887421aaa509f4 /var
parente01817cb1571f0cbf0b8810adb7e4cd84f208176 (diff)
downloadspack-3e8f873b03a6f696ddf999990466fa6e38fc3b85.tar.gz
spack-3e8f873b03a6f696ddf999990466fa6e38fc3b85.tar.bz2
spack-3e8f873b03a6f696ddf999990466fa6e38fc3b85.tar.xz
spack-3e8f873b03a6f696ddf999990466fa6e38fc3b85.zip
cpio: icc -no-gcc (#15446)
Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cpio/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cpio/package.py b/var/spack/repos/builtin/packages/cpio/package.py
index ae6b429ccc..2381a82499 100644
--- a/var/spack/repos/builtin/packages/cpio/package.py
+++ b/var/spack/repos/builtin/packages/cpio/package.py
@@ -16,3 +16,8 @@ class Cpio(AutotoolsPackage, GNUMirrorPackage):
version('2.13', sha256='e87470d9c984317f658567c03bfefb6b0c829ff17dbf6b0de48d71a4c8f3db88')
build_directory = 'spack-build'
+
+ def flag_handler(self, name, flags):
+ if self.spec.satisfies('%intel') and name == 'cflags':
+ flags.append('-no-gcc')
+ return (flags, None, None)