-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Windows] Fix windows breakage caused by lit.cfg change #33062
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
@swift-ci test |
test/lit.cfg
Outdated
if platform.system() == 'Linux': | ||
stdlib_dir += config.target_sdk_name + "/" + run_cpu | ||
if platform.system() == 'Linux' || platform.system() == 'Windows': | ||
stdlib_dir += config.target_sdk_name + path_separator + run_cpu |
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.
Using os.path.join
is better IMO, though you could just keep this as is I think.
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.
A lot better, thanks for the pointer.
@swift-ci test |
Build failed |
Build failed |
@swift-ci Please test Windows platform |
@swift-ci please test Windows platform |
@swift-ci Please test OS X platform |
Looks like the original issue was slightly different, it is referring to an "Unrecognized escape code" inside the json map, not referring to incorrect path separators. |
@swift-ci test |
Build failed |
Build failed |
@swift-ci please test Windows platform |
I believe that there are two categories of failures, some related to the stdlib and others related to the path encoding. |
I believe the path encoding failure is caused by the fact that on Linux and macOS, having a comma after the last element of a JSON list is somehow considered to be a valid termination sequence, but on Windows it is not. |
Commas after the last element in a list are not valid json: https://www.json.org/json-en.html |
Actually it seems that having any line ending with a comma is not valid on Windows? Not necessarily even after the last element in a list... |
More likely its line endings ... Windows uses |
|
It is created as: The error seems to be pointing directly at:
Which is separating second and third list elements in the generated JSON list... |
The path that is generated from From the logs:
|
I'm confused. Here's the most recent failure log: https://ci-external.swift.org/job/swift-PR-windows/5448/consoleText The resulting path generated by
|
Ah I see it now in:
|
I have a fix, I'll upload it in a second. |
#33066 should take care of it |
@swift-ci test |
Build failed |
Build failed |
@swift-ci please test Windows platform |
Caused by a change in: #32903