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