[llvm] r293230 - CMake is funky on detecting Intel 17 as GCC compatible.
Yichao Yu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 15:50:18 PST 2017
Author: yuyichao
Date: Thu Jan 26 17:50:18 2017
New Revision: 293230
URL: http://llvm.org/viewvc/llvm-project?rev=293230&view=rev
Log:
CMake is funky on detecting Intel 17 as GCC compatible.
Summary: This adds a fallback in case that the Intel compiler is failed to be detected correctly.
Reviewers: chapuni
Reviewed By: chapuni
Subscribers: llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D27610
Modified:
llvm/trunk/cmake/modules/DetermineGCCCompatible.cmake
Modified: llvm/trunk/cmake/modules/DetermineGCCCompatible.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/DetermineGCCCompatible.cmake?rev=293230&r1=293229&r2=293230&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/DetermineGCCCompatible.cmake (original)
+++ llvm/trunk/cmake/modules/DetermineGCCCompatible.cmake Thu Jan 26 17:50:18 2017
@@ -7,5 +7,7 @@ if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMP
set(LLVM_COMPILER_IS_GCC_COMPATIBLE OFF)
elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
+ elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
+ set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
endif()
endif()
More information about the llvm-commits
mailing list