File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ else()
29
29
set (CMAKE_C_COMPILER "${SWIFT_NATIVE_LLVM_TOOLS_PATH} /clang" )
30
30
endif ()
31
31
32
- set (CMAKE_C_COMPILER_LAUNCHER "" )
33
- set (CMAKE_CXX_COMPILER_LAUNCHER "" )
32
+ if (CMAKE_C_COMPILER_LAUNCHER MATCHES ".*distcc" )
33
+ set (CMAKE_C_COMPILER_LAUNCHER "" )
34
+ endif ()
35
+ if (CMAKE_CXX_COMPILER_LAUNCHER MATCHES ".*distcc" )
36
+ set (CMAKE_CXX_COMPILER_LAUNCHER "" )
37
+ endif ()
34
38
35
39
# The sanitizers require using the same version of the compiler for
36
40
# everything and there are various places where we link runtime code with
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
20
20
set (CMAKE_C_COMPILER "${SWIFT_NATIVE_LLVM_TOOLS_PATH} /clang" )
21
21
endif ()
22
22
23
- set (CMAKE_C_COMPILER_LAUNCHER "" )
24
- set (CMAKE_CXX_COMPILER_LAUNCHER "" )
23
+ if (CMAKE_C_COMPILER_LAUNCHER MATCHES ".*distcc" )
24
+ set (CMAKE_C_COMPILER_LAUNCHER "" )
25
+ endif ()
26
+ if (CMAKE_CXX_COMPILER_LAUNCHER MATCHES ".*distcc" )
27
+ set (CMAKE_CXX_COMPILER_LAUNCHER "" )
28
+ endif ()
25
29
endif ()
26
30
27
31
set (swift_runtime_test_extra_libraries )
You can’t perform that action at this time.
0 commit comments