[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
@ -36,6 +36,9 @@ def configure_args(self):
|
|||||||
spec = self.spec
|
spec = self.spec
|
||||||
args = ['--enable-c++']
|
args = ['--enable-c++']
|
||||||
|
|
||||||
|
if spec.satisfies('%cce@9:'):
|
||||||
|
args.append('LDFLAGS=-rtlib=compiler-rt')
|
||||||
|
|
||||||
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
|
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
|
||||||
args.append('LDFLAGS=-rtlib=compiler-rt')
|
args.append('LDFLAGS=-rtlib=compiler-rt')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user