Check for ARM compiler in addition to clang (#10280)

Add "-rtlib=compiler-rt" to CFLAGS when building with either Clang or
the ARM compiler.

Refs #10279
This commit is contained in:
Ross Miller 2019-01-08 13:41:05 -05:00 committed by Adam J. Stewart
parent dabf4f17d3
commit 2934eda311

View file

@ -34,7 +34,8 @@ def configure_args(self):
spec = self.spec spec = self.spec
args = ['--enable-c++'] args = ['--enable-c++']
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'): if (spec.satisfies('%clang') or spec.satisfies('%arm')) and not \
spec.satisfies('platform=darwin'):
args.append('CFLAGS=-rtlib=compiler-rt') args.append('CFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%intel'): if spec.satisfies('%intel'):