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
1 changed files with 5 additions and 4 deletions
|
@ -22,10 +22,11 @@ class Cpio(AutotoolsPackage, GNUMirrorPackage):
|
|||
def flag_handler(self, name, flags):
|
||||
spec = self.spec
|
||||
|
||||
if '%intel' in spec and name == 'cflags':
|
||||
flags.append('-no-gcc')
|
||||
if name == 'cflags':
|
||||
if '%intel' in spec:
|
||||
flags.append('-no-gcc')
|
||||
|
||||
if '%clang' in spec and name == 'cflags':
|
||||
flags.append('--rtlib=compiler-rt')
|
||||
elif '%clang' in spec or '%fj' in spec:
|
||||
flags.append('--rtlib=compiler-rt')
|
||||
|
||||
return (flags, None, None)
|
||||
|
|
Loading…
Reference in a new issue