Skip to content

Commit 19b4935

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents c936205 + 89fec21 commit 19b4935

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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})

tools/swift-compatibility-symbols/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ add_swift_host_tool(swift-compatibility-symbols
77
set(syms_file "${CMAKE_BINARY_DIR}/share/swift/compatibility-symbols")
88

99
add_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
)

0 commit comments

Comments
 (0)