We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1ea315 + 0d9b364 commit 11c0316Copy full SHA for 11c0316
SwiftCompilerSources/CMakeLists.txt
@@ -119,7 +119,10 @@ function(add_swift_compiler_modules_library name)
119
if (dependencies)
120
foreach(dep_module ${dependencies})
121
if (DEFINED "${dep_module}_dep_target")
122
- list(APPEND deps "${${dep_module}_dep_target}")
+ # We have to add the module target for the ordering dependency
123
+ # and the output file for the file dependency (otherwise the dependent
124
+ # module wouldn't be rebuilt if the current module changes)
125
+ list(APPEND deps "${${dep_module}_dep_target}" "${build_dir}/${dep_module}.o")
126
else()
127
message(FATAL_ERROR "module dependency ${module} -> ${dep_module} not found. Make sure to add modules in dependency order")
128
endif()
0 commit comments