summaryrefslogtreecommitdiff
path: root/var/spack/packages/rose/add_spack_compiler_recognition.patch
blob: ce61ae4e4c0c1be004acd23c91b372ade54e7378 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/config/compiler-defs.m4 b/config/compiler-defs.m4
index d7d85d2..780c8de 100644
--- a/config/compiler-defs.m4
+++ b/config/compiler-defs.m4
@@ -28,7 +28,7 @@ dnl predefined by a specific compiler
   # g++|gcc|mpicc|mpic++|mpicxx|mpiCC)
   # TOO (2/16/2011): added support for tensilica compilers, assuming they are
   # like GCC (they use a GCC front-end)
-    g++*|gcc*|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
+    cc*|c++*|g++*|gcc*|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
              BACKEND_GCC_MAJOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f1`
              BACKEND_GCC_MINOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f2`
              BACKEND_GCC_PATCHLEVEL=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f3`