summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ROCMClang-C.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Compiler/ROCMClang-C.cmake')
-rw-r--r--Modules/Compiler/ROCMClang-C.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/ROCMClang-C.cmake b/Modules/Compiler/ROCMClang-C.cmake
new file mode 100644
index 0000000..cdfa95d
--- /dev/null
+++ b/Modules/Compiler/ROCMClang-C.cmake
@@ -0,0 +1,7 @@
+include(Compiler/ROCMClang)
+__compiler_rocmclang(C)
+
+set(_rocm_clang_ver "${CMAKE_C_COMPILER_VERSION_INTERNAL}")
+set(CMAKE_C_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION_INTERNAL}")
+include(Compiler/Clang-C)
+set(CMAKE_C_COMPILER_VERSION "${_rocm_clang_ver}")