Skip to content

Commit 8c7be03

Browse files
authored
Merge pull request #73225 from gottesmm/pr-8b42b60f27fcdfdf5502a79e2a874ce1987d5838
[cmake] Make the hosttools lib SwiftMacros a dependency of the stdlib when we aren't cross compiling.
2 parents f0aba4d + b6e9c9c commit 8c7be03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,10 @@ function(_compile_swift_files
856856
if(SWIFT_INCLUDE_TOOLS AND NOT BOOTSTRAPPING_MODE STREQUAL "CROSSCOMPILE")
857857
# Depend on the binary itself, in addition to the symlink, unless
858858
# cross-compiling the compiler.
859-
set(swift_compiler_tool_dep "swift-frontend${target_suffix}")
859+
list(APPEND swift_compiler_tool_dep "swift-frontend${target_suffix}")
860+
861+
# If we aren't cross compiling, also depend on SwiftMacros.
862+
list(APPEND swift_compiler_tool_dep SwiftMacros)
860863
endif()
861864

862865
# If there are more than one output files, we assume that they are specified

0 commit comments

Comments
 (0)