File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ function(add_swift_compiler_modules_library name)
107
107
get_versioned_target_triple (target ${SWIFT_HOST_VARIANT_SDK}
108
108
${SWIFT_HOST_VARIANT_ARCH} "${deployment_version} " )
109
109
110
+ set (all_obj_files )
111
+ set (all_module_targets )
110
112
get_property (modules GLOBAL PROPERTY "swift_compiler_modules" )
111
113
foreach (module ${modules} )
112
114
@@ -148,10 +150,12 @@ function(add_swift_compiler_modules_library name)
148
150
COMMENT "Building swift module ${module} " )
149
151
150
152
set ("${module} _dep_target" ${dep_target} )
153
+ set (all_module_targets ${all_module_targets} ${dep_target} )
151
154
endforeach ()
152
155
153
156
# Create a static library containing all module object files.
154
157
add_library (${name} STATIC ${all_obj_files} )
158
+ add_dependencies (${name} ${all_module_targets} )
155
159
set_target_properties (${name} PROPERTIES LINKER_LANGUAGE CXX )
156
160
set_property (GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${name} )
157
161
endfunction ()
You can’t perform that action at this time.
0 commit comments