diff options
| author | Yichao Yu <yyc1992@gmail.com> | 2017-01-26 23:50:18 +0000 |
|---|---|---|
| committer | Yichao Yu <yyc1992@gmail.com> | 2017-01-26 23:50:18 +0000 |
| commit | e1864d0687ef2253f798976f1207edb413ff242a (patch) | |
| tree | 48c19f2f6e78c4868e21006b75384dd792c0bf05 /llvm/cmake | |
| parent | e6cf4374b03678aab59c17a562b409ece372ff3c (diff) | |
| download | bcm5719-llvm-e1864d0687ef2253f798976f1207edb413ff242a.tar.gz bcm5719-llvm-e1864d0687ef2253f798976f1207edb413ff242a.zip | |
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
llvm-svn: 293230
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/DetermineGCCCompatible.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/modules/DetermineGCCCompatible.cmake b/llvm/cmake/modules/DetermineGCCCompatible.cmake index 1bf15fcba72..1369ebe9d0e 100644 --- a/llvm/cmake/modules/DetermineGCCCompatible.cmake +++ b/llvm/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() |

