Skip to content
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

Windows builds broken when querying target-info from libSwiftScan #1341

Closed
artemcm opened this issue Apr 28, 2023 · 2 comments
Closed

Windows builds broken when querying target-info from libSwiftScan #1341

artemcm opened this issue Apr 28, 2023 · 2 comments
Assignees

Comments

@artemcm
Copy link
Contributor

artemcm commented Apr 28, 2023

After such queries result in target-infos containing double-quoted paths, e.g.:

    "sdkPath" : "'C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk'"

This failure is caused by #1335. For now we will disable libSwiftScan target info query on Windows while we understand how to get the paths right here.

@artemcm
Copy link
Contributor Author

artemcm commented Apr 28, 2023

The solution here will be to quote paths properly on Windows in the ArgsResolver:

return quotePaths ? "'\(actualPath)'" : actualPath

Because simply using ' is not correct. We should probably piggy-back on @compnerd's work here:

func quote(_ argument: String) -> String {

@artemcm
Copy link
Contributor Author

artemcm commented May 3, 2023

Resolved with #1343

@artemcm artemcm closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant