From 2934eda31119e371c22f460074cde8bcc9d3e0f2 Mon Sep 17 00:00:00 2001 From: Ross Miller Date: Tue, 8 Jan 2019 13:41:05 -0500 Subject: [PATCH] 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 --- var/spack/repos/builtin/packages/m4/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index b87bce6610..b14956e3ae 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -34,7 +34,8 @@ def configure_args(self): spec = self.spec 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') if spec.satisfies('%intel'):