Skip to content

Commit 15dd6f9

Browse files
author
Nathan Hawes
committed
[sourcekit] Fix for Ubuntu 16.04 Swift ASAN bot failures
Don't mix and match between the just-built clang and the host clang when ASAN is enabled. rdar://problem/45273748
1 parent bbc81ba commit 15dd6f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/SourceKit/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
101101

102102
if(SWIFT_BUILD_SOURCEKIT)
103103
if(CMAKE_C_COMPILER_ID STREQUAL Clang AND
104-
CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.8)
104+
CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.8
105+
OR LLVM_USE_SANITIZER)
105106
set(SWIFT_SOURCEKIT_C_COMPILER ${CMAKE_C_COMPILER})
106107
set(SWIFT_SOURCEKIT_CXX_COMPILER ${CMAKE_CXX_COMPILER})
107108
elseif(${CMAKE_SYSTEM_NAME} STREQUAL ${CMAKE_HOST_SYSTEM_NAME})

0 commit comments

Comments
 (0)