clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
14 lines
470 B
CMake
14 lines
470 B
CMake
# Determine if the compiler has GCC-compatible command-line syntax.
|
|
|
|
if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
|
elseif( MSVC )
|
|
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()
|