Skip to content

Commit 2964b58

Browse files
author
Nathan Hawes
authored
Merge pull request swiftlang#20055 from nathawes/r45273748-speculative-fix-for-asan-bot-sourcekit-failures
[sourcekit] Fix for Ubuntu 16.04 Swift ASAN bot sourcekitd-test failures
2 parents d62a018 + 15dd6f9 commit 2964b58

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)