[M4] Add missing compiler flag on Cray Compiler (#17604)
* [M4] Add missing compiler flag on Cray Compiler The new version of the Cray Compiler are based on Clang, which means we need to add the same LDFLAG as other clang environments.
This commit is contained in:
parent
4b33558707
commit
39cfa9630c
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ def configure_args(self):
|
|||
spec = self.spec
|
||||
args = ['--enable-c++']
|
||||
|
||||
if spec.satisfies('%cce@9:'):
|
||||
args.append('LDFLAGS=-rtlib=compiler-rt')
|
||||
|
||||
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
|
||||
args.append('LDFLAGS=-rtlib=compiler-rt')
|
||||
|
||||
|
|
Loading…
Reference in a new issue