Skip to content

Commit 740f299

Browse files
committed
[cmake] Make the hosttools lib SwiftMacros a dependency of the stdlib when we aren't cross compiling.
This just matches the dependency behavior of the stdlib for swift-frontend. So we should always have SwiftMacros as needed. rdar://126998047 (cherry picked from commit b6e9c9c)
1 parent 60b453c commit 740f299

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)