Skip to content

Commit a4bea90

Browse files
authored
[build] invoke swift-serialize-diagnostics for host architecture
As a result of #33346 we are relying on the tool for the current target -- this will work for the host architecture but will fail when crosscompiling. Addresses rdar://66800239
1 parent 147274b commit a4bea90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localization/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ add_custom_command(TARGET diagnostic-database
44
COMMAND
55
${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/diagnostics/ ${CMAKE_BINARY_DIR}/share/swift/diagnostics/
66
COMMAND
7-
$<TARGET_FILE:swift-serialize-diagnostics>
7+
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swift-serialize-diagnostics"
88
--input-file-path ${CMAKE_BINARY_DIR}/share/swift/diagnostics/en.yaml
99
--output-directory ${CMAKE_BINARY_DIR}/share/swift/diagnostics/
1010
)
1111

1212
add_dependencies(swift-frontend diagnostic-database)
13+
add_dependencies(diagnostic-database swift-serialize-diagnostics)
1314

1415
swift_install_in_component(
1516
DIRECTORY ${CMAKE_BINARY_DIR}/share/swift/diagnostics/

0 commit comments

Comments
 (0)