File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed
tools/swift-compatibility-symbols Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -177,20 +177,21 @@ function(add_swift_compiler_modules_library name)
177177 endforeach ()
178178
179179 # Compile the module into an object file
180- add_custom_command_target(dep_target OUTPUT ${module_obj_file}
180+ add_custom_command_target(dep_target
181+ COMMAND ${ALS_SWIFT_EXEC} "-c" "-o" ${module_obj_file}
182+ ${sdk_option}
183+ "-target" ${target}
184+ "-module-name" ${module} "-emit-module"
185+ "-emit-module-path" "${build_dir} /${module} .swiftmodule"
186+ "-parse-as-library" ${sources}
187+ "-wmo" ${swift_compile_options}
188+ ${c_include_paths_args}
189+ # Generated swift modules.
190+ "-I" "${build_dir} "
191+ OUTPUT ${module_obj_file}
181192 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
182193 DEPENDS ${sources} ${deps} ${ALS_DEPENDS}
183194 importedHeaderDependencies
184- COMMAND ${ALS_SWIFT_EXEC} "-c" "-o" ${module_obj_file}
185- ${sdk_option}
186- "-target" ${target}
187- "-module-name" ${module} "-emit-module"
188- "-emit-module-path" "${build_dir} /${module} .swiftmodule"
189- "-parse-as-library" ${sources}
190- "-wmo" ${swift_compile_options}
191- ${c_include_paths_args}
192- # Generated swift modules.
193- "-I" "${build_dir} "
194195 COMMENT "Building swift module ${module} " )
195196
196197 set ("${module} _dep_target" ${dep_target} )
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ add_swift_host_tool(swift-compatibility-symbols
77set (syms_file "${CMAKE_BINARY_DIR} /share/swift/compatibility-symbols" )
88
99add_custom_command_target(copy_compat_target
10- OUTPUT
11- ${syms_file}
1210 COMMAND
1311 "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swift-compatibility-symbols"
14- --output -filename ${syms_file}
12+ --output -filename ${syms_file}
13+ OUTPUT
14+ ${syms_file}
1515 DEPENDS
1616 swift-compatibility-symbols
1717)
You can’t perform that action at this time.
0 commit comments