summaryrefslogtreecommitdiff
path: root/lib/spack/env
diff options
context:
space:
mode:
authorSrinath Vadlamani <srinath.vadlamani@gmail.com>2019-01-08 17:31:25 -0700
committerGreg Becker <becker33@llnl.gov>2019-01-08 16:31:25 -0800
commit4fdd3b6794bee53a3a629615b801f8ee939fe533 (patch)
treec445c63ce62fdf76e5ddf93c2b476791b46e8097 /lib/spack/env
parentee64db4764f8c1eb50d5929e94375d630d82aa43 (diff)
downloadspack-4fdd3b6794bee53a3a629615b801f8ee939fe533.tar.gz
spack-4fdd3b6794bee53a3a629615b801f8ee939fe533.tar.bz2
spack-4fdd3b6794bee53a3a629615b801f8ee939fe533.tar.xz
spack-4fdd3b6794bee53a3a629615b801f8ee939fe533.zip
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 <Nick.Forrington@arm.com> Minor changes by Srinath Vadlamani <srinath.vadlamani@arm.com> * compilers: add arm compiler detection to Spack - added arm.py with support for detecting `armclang` and `armflang` Co-authored-by: Srinath Vadlamani <srinath.vadlamani@arm.com> * 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
Diffstat (limited to 'lib/spack/env')
l---------lib/spack/env/arm/armclang1
l---------lib/spack/env/arm/armclang++1
l---------lib/spack/env/arm/armflang1
-rwxr-xr-xlib/spack/env/cc6
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/spack/env/arm/armclang b/lib/spack/env/arm/armclang
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/arm/armclang
@@ -0,0 +1 @@
+../cc \ No newline at end of file
diff --git a/lib/spack/env/arm/armclang++ b/lib/spack/env/arm/armclang++
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/arm/armclang++
@@ -0,0 +1 @@
+../cc \ No newline at end of file
diff --git a/lib/spack/env/arm/armflang b/lib/spack/env/arm/armflang
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/arm/armflang
@@ -0,0 +1 @@
+../cc \ No newline at end of file
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 5e68702c5f..70f429055d 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -106,19 +106,19 @@ case "$command" in
cpp)
mode=cpp
;;
- cc|c89|c99|gcc|clang|icc|pgcc|xlc|xlc_r)
+ cc|c89|c99|gcc|clang|armclang|icc|pgcc|xlc|xlc_r)
command="$SPACK_CC"
language="C"
comp="CC"
lang_flags=C
;;
- c++|CC|g++|clang++|icpc|pgc++|xlc++|xlc++_r)
+ c++|CC|g++|clang++|armclang++|icpc|pgc++|xlc++|xlc++_r)
command="$SPACK_CXX"
language="C++"
comp="CXX"
lang_flags=CXX
;;
- ftn|f90|fc|f95|gfortran|flang|ifort|pgfortran|xlf90|xlf90_r|nagfor)
+ ftn|f90|fc|f95|gfortran|flang|armflang|ifort|pgfortran|xlf90|xlf90_r|nagfor)
command="$SPACK_FC"
language="Fortran 90"
comp="FC"