mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
build: correct case for compiler id
The STREQUAL would fail as the C in Clang for the compiler ID is capital. Correct the case.
This commit is contained in:
@@ -100,7 +100,7 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
||||
set(SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH TRUE)
|
||||
|
||||
if(SWIFT_BUILD_SOURCEKIT)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL clang AND
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL Clang AND
|
||||
CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.8)
|
||||
set(SWIFT_SOURCEKIT_C_COMPILER ${CMAKE_C_COMPILER})
|
||||
set(SWIFT_SOURCEKIT_CXX_COMPILER ${CMAKE_CXX_COMPILER})
|
||||
|
||||
Reference in New Issue
Block a user