From: Hans Wennborg Date: Wed, 1 Feb 2017 16:54:47 +0000 (+0000) Subject: Merging r293230: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b8d6be383fdb4d0b03759bdb195e506947a4c22;p=llvm Merging r293230: ------------------------------------------------------------------------ r293230 | yuyichao | 2017-01-26 15:50:18 -0800 (Thu, 26 Jan 2017) | 11 lines 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 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@293780 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/DetermineGCCCompatible.cmake b/cmake/modules/DetermineGCCCompatible.cmake index 1bf15fcba72..1369ebe9d0e 100644 --- a/cmake/modules/DetermineGCCCompatible.cmake +++ b/cmake/modules/DetermineGCCCompatible.cmake @@ -7,5 +7,7 @@ if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMPATIBLE) 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()