Skip to content

Commit 9feac71

Browse files
authored
Merge pull request swiftlang#25487 from compnerd/implicitly-incorrect
build: do not implicitly track build dependencies for host
2 parents 276b170 + 4eb0ca0 commit 9feac71

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)