From 4fdd3b6794bee53a3a629615b801f8ee939fe533 Mon Sep 17 00:00:00 2001 From: Srinath Vadlamani Date: Tue, 8 Jan 2019 17:31:25 -0700 Subject: Armcompiler (#9840) * Initial compiler support * added arm.py * Changed licence to Arm suggested header * Changed licence to the same as clang.py Main author of file is Nick Forrington Minor changes by Srinath Vadlamani * compilers: add arm compiler detection to Spack - added arm.py with support for detecting `armclang` and `armflang` Co-authored-by: Srinath Vadlamani * Changed to using get get_compiler_version * linking to general cc for arm compiler * For arm compiler add CFLAGS to use compiler-rt rtlib. * Escape for special characters in rexep * Cleaned up for Flake8 to pass. * libcompiler-rt should be part of the LDFLAGS not CFLAGS * fixed m4 when using clang to used LDFLAGS. Fixed comments for arm.py to display compiler --version output with # NOAQ for flakes pass. * added arm compilers * proper linked names --- var/spack/repos/builtin/packages/m4/package.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index b14956e3ae..ad180b15a8 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -34,9 +34,11 @@ class M4(AutotoolsPackage): spec = self.spec args = ['--enable-c++'] - if (spec.satisfies('%clang') or spec.satisfies('%arm')) and not \ - spec.satisfies('platform=darwin'): - args.append('CFLAGS=-rtlib=compiler-rt') + if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'): + args.append('LDFLAGS=-rtlib=compiler-rt') + + if spec.satisfies('%arm') and not spec.satisfies('platform=darwin'): + args.append('LDFLAGS=-rtlib=compiler-rt') if spec.satisfies('%intel'): args.append('CFLAGS=-no-gcc') -- cgit v1.2.3-70-g09d2