Skip to content

Commit 4eb0ca0

Browse files
committed
build: do not implicitly track build dependencies for host
Because we do a custom cross-compilation, we are tracking the *build* dependencies when building libraries for the *host*. That is to say, if you are building for Linux on Darwin, we track Darwin's libc++ as a dependency for the Linux swiftCore.
1 parent 047749a commit 4eb0ca0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stdlib/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ include(AddSwiftStdlib)
77

88
# Create convenience targets for the Swift standard library.
99

10+
# NOTE(compnerd) this will pass the *build* configuration to the *host*
11+
# libraries. Explicitly indicate to CMake that it should **NOT** track the
12+
# implicit language runtimes. This can go away once we migrate to an external
13+
# project with its own configure with the CMAKE_SYSTEM_NAME set rather than
14+
# using the custom cross-compilation solution
15+
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "")
16+
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
17+
18+
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "")
19+
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "")
20+
1021
# NOTE(compnerd) save the original compiler for the host swiftReflection that
1122
# we build
1223
set(HOST_CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER})

0 commit comments

Comments
 (0)