cpio: add --rtlib=compiler-rt for %fj (#18619)
* cpio: add --rtlib=compiler-rt for %fj * cpio: simplify if * Update var/spack/repos/builtin/packages/cpio/package.py This seems better. Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
a250006449
commit
41b68741ec
@ -22,10 +22,11 @@ class Cpio(AutotoolsPackage, GNUMirrorPackage):
|
|||||||
def flag_handler(self, name, flags):
|
def flag_handler(self, name, flags):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
|
||||||
if '%intel' in spec and name == 'cflags':
|
if name == 'cflags':
|
||||||
flags.append('-no-gcc')
|
if '%intel' in spec:
|
||||||
|
flags.append('-no-gcc')
|
||||||
|
|
||||||
if '%clang' in spec and name == 'cflags':
|
elif '%clang' in spec or '%fj' in spec:
|
||||||
flags.append('--rtlib=compiler-rt')
|
flags.append('--rtlib=compiler-rt')
|
||||||
|
|
||||||
return (flags, None, None)
|
return (flags, None, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user