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)
177
177
endforeach ()
178
178
179
179
# 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}
181
192
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
182
193
DEPENDS ${sources} ${deps} ${ALS_DEPENDS}
183
194
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} "
194
195
COMMENT "Building swift module ${module} " )
195
196
196
197
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
7
7
set (syms_file "${CMAKE_BINARY_DIR} /share/swift/compatibility-symbols" )
8
8
9
9
add_custom_command_target (copy_compat_target
10
- OUTPUT
11
- ${syms_file}
12
10
COMMAND
13
11
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swift-compatibility-symbols"
14
- --output-filename ${syms_file}
12
+ --output-filename ${syms_file}
13
+ OUTPUT
14
+ ${syms_file}
15
15
DEPENDS
16
16
swift-compatibility-symbols
17
17
)
You can’t perform that action at this time.
0 commit comments