Merge pull request #71552 from finagolfin/cross-compile

[CMake] Add broader support for cross-compiling the portions of the compiler that are written in Swift to non-Darwin Unix
This commit is contained in:
eeckstein
2024-03-15 16:28:38 +01:00
committed by GitHub
6 changed files with 41 additions and 16 deletions

View File

@@ -848,8 +848,9 @@ function(_compile_swift_files
endif()
set(swift_compiler_tool_dep)
if(SWIFT_INCLUDE_TOOLS)
# Depend on the binary itself, in addition to the symlink.
if(SWIFT_INCLUDE_TOOLS AND NOT BOOTSTRAPPING_MODE STREQUAL "CROSSCOMPILE")
# Depend on the binary itself, in addition to the symlink, unless
# cross-compiling the compiler.
set(swift_compiler_tool_dep "swift-frontend${target_suffix}")
endif()