summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2015-12-02 16:00:44 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-09 13:35:19 (GMT)
commita7ef02253bf8ef33d4ffdd761802ea30ef289b8a (patch)
treea1029eb1d5bec221148e3bb7341994599ac91aaf /Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake
parent0763a8365528166747746e3b94e74ca98d0d705f (diff)
downloadCMake-a7ef02253bf8ef33d4ffdd761802ea30ef289b8a.zip
CMake-a7ef02253bf8ef33d4ffdd761802ea30ef289b8a.tar.gz
CMake-a7ef02253bf8ef33d4ffdd761802ea30ef289b8a.tar.bz2
Cray: Refactor the Cray platform files to use compiler wrapper checks
This is an extensive refactoring of the Cray compiler wrapper usage. Using the new compiler wrapper checks, the CrayPrgEnv info files have been moved from Platform/ to Compiler/. The adjusted naming convention allows the compiler-wrapper information files to be loaded for both the CrayLinuxEnvironment platform when cross-compiling and the Linux platform if building natively on the Cray compute nodes. It also creates a separation of common arguments for compiler id and language information used to perform the appropriate introspection of implicit arguments and libraries used by the compiler wrappers based on the loaded module environment.
Diffstat (limited to 'Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake')
-rw-r--r--Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake b/Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake
new file mode 100644
index 0000000..df8452c
--- /dev/null
+++ b/Modules/Compiler/CrayPrgEnv-Cray-CXX.cmake
@@ -0,0 +1,7 @@
+if(__craylinux_crayprgenv_cray_cxx)
+ return()
+endif()
+set(__craylinux_crayprgenv_cray_cxx 1)
+
+include(Compiler/CrayPrgEnv-CXX)
+__CrayPrgEnv_setup_CXX("/opt/cray/cce/.*/ccfe" "/opt/cray/cce/.*/ld")