[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:
Nick Robison 2020-07-23 02:55:03 -04:00 committed by GitHub
parent 4b33558707
commit 39cfa9630c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')