-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Frontend] Diagnostic translations re-org #32828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/cc @HassanElDesouky |
7adc185
to
b425d5b
Compare
@swift-ci please build toolchain |
1 similar comment
@swift-ci please build toolchain |
ca72826
to
76e931f
Compare
@swift-ci please build toolchain |
76e931f
to
a82b9fd
Compare
@swift-ci please build toolchain |
Looks like both toolchains succeeded but didn't post the results as a comment. |
@swift-ci please smoke test |
@swift-ci please smoke test macOS platform |
localization/CMakeLists.txt
Outdated
@@ -0,0 +1,21 @@ | |||
# First, let's create a directory where diagnostics are going to be placed | |||
make_directory(share/swift/diagnostics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like Windows CI doesn't like this because it fails with ninja: error: 'share/swift/diagnostics', needed by 'localization/CMakeFiles/copy-diagnostics', missing and no known rule to make it
. @compnerd what is the cross-platform way of doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at https://github.com/apple/swift/blob/bf47403162fc53281f242da50649fda5b9a193f5/stdlib/cmake/modules/SwiftSource.cmake#L742 and https://cmake.org/cmake/help/latest/command/add_custom_command.html, my suggestion would be to remove this line and instead have add_custom_command
create the directory -- e.g.
...
COMMAND "${CMAKE_COMMAND}" -E make_directory "${output}"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${input}/*.yaml" "${output}")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, let try that!
@swift-ci please smoke test Windows platform |
1 similar comment
@swift-ci please smoke test Windows platform |
3487171
to
0ad9b1a
Compare
@swift-ci please smoke test Windows platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed the change offline and iterated a bit on it. Thanks for cleaning this up!
Windows build is running here - https://ci-external.swift.org/job/swift-PR-windows/5055/console, for some reason it hasn't been reported, maybe it would be once it finishes, let's see... |
It failed with:
|
@swift-ci please build toolchain |
@swift-ci please build toolchain |
@swift-ci please smoke test Windows platform |
Linux Toolchain (Ubuntu 16.04) Install command |
Ok, looks like |
Ah no, actually it has |
0ad9b1a
to
91cd0f0
Compare
@swift-ci please build toolchain |
Linux Toolchain (Ubuntu 16.04) Install command |
macOS Toolchain Install command |
@swift-ci please smoke test |
1 similar comment
@swift-ci please smoke test |
@swift-ci please smoke test Windows platform |
diagnostics/
directorydiagnostics
component at the end of the default translations path