Intel: Add Intel DPC++ compiler identification

The compiler identifies itself with the `__INTEL_DPCPP_COMPILER__`
preprocessor definition.
This commit is contained in:
Harini Chilamantula
2020-09-21 14:33:23 -07:00
committed by Brad King
parent 0cb7216b9f
commit 887f3a88a6
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@ include:
HP = Hewlett-Packard Compiler (hp.com)
IAR = IAR Systems (iar.com)
Intel = Intel Compiler (intel.com)
IntelDPCPP = Intel DPCPP Compiler (intel.com)
MSVC = Microsoft Visual Studio (microsoft.com)
NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
OpenWatcom = Open Watcom (openwatcom.org)
+1
View File
@@ -78,6 +78,7 @@ function(compiler_id_detection outvar lang)
ARMCC
AppleClang
ARMClang
IntelDPCPP
Clang
GNU
MSVC
@@ -0,0 +1,7 @@
set(_compiler_id_pp_test "defined(__clang__) && defined(__INTEL_DPCPP_COMPILER__)")
include("${CMAKE_CURRENT_LIST_DIR}/Clang-DetermineCompilerInternal.cmake")
string(APPEND _compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__INTEL_DPCPP_COMPILER__)")