Intel: Add Intel Clang compiler identification

The compiler identifies itself with the `__INTEL_CLANG_COMPILER`
preprocessor definition.
This commit is contained in:
Harini Chilamantula
2020-09-29 13:30:27 -07:00
committed by Brad King
parent af048185b1
commit 5c3a93ab88
3 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ include:
IAR = IAR Systems (iar.com)
Intel = Intel Compiler (intel.com)
IntelDPCPP = Intel DPCPP Compiler (intel.com)
IntelClang = Intel Clang Compiler (intel.com)
MSVC = Microsoft Visual Studio (microsoft.com)
NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
OpenWatcom = Open Watcom (openwatcom.org)

View File

@@ -79,6 +79,7 @@ function(compiler_id_detection outvar lang)
AppleClang
ARMClang
IntelDPCPP
IntelClang
Clang
GNU
MSVC

View File

@@ -0,0 +1,7 @@
set(_compiler_id_pp_test "defined(__clang__) && defined(__INTEL_CLANG_COMPILER)")
include("${CMAKE_CURRENT_LIST_DIR}/Clang-DetermineCompilerInternal.cmake")
string(APPEND _compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__INTEL_CLANG_COMPILER)")