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
This commit is contained in:
Tom Payerle 2020-10-10 22:07:04 -04:00 committed by GitHub
parent a408400619
commit 793ffd8d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ def flag_handler(self, name, flags):
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: