Skip to content

Commit 3526fab

Browse files
committed
build: correct dependency tracking
1 parent cbe5c1d commit 3526fab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/SwiftSupport.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ function(add_swift_target target)
9797
${doc}
9898
DEPENDS
9999
${source}
100+
${AST_DEPENDS}
100101
COMMAND
101102
${CMAKE_SWIFT_COMPILER} -frontend ${flags} -emit-module-path ${mod} -emit-module-doc-path ${doc} -o ${obj} -c ${all_sources})
102103

@@ -119,6 +120,7 @@ function(add_swift_target target)
119120
DEPENDS
120121
${mods}
121122
${docs}
123+
${AST_DEPENDS}
122124
COMMAND
123125
${CMAKE_SWIFT_COMPILER} -frontend ${flags} -sil-merge-partial-modules -emit-module ${mods} -o ${module} -emit-module-doc-path ${documentation})
124126
endif()
@@ -131,6 +133,7 @@ function(add_swift_target target)
131133
${AST_OUTPUT}
132134
DEPENDS
133135
${objs}
136+
${AST_DEPENDS}
134137
COMMAND
135138
${CMAKE_SWIFT_COMPILER} ${emit_library} ${link_flags} -o ${AST_OUTPUT} ${objs}
136139
COMMAND

0 commit comments

Comments
 (0)