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

Xcode backend: better quoting for spaces in HEADER_SEARCH_PATHS #13867

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

klokik
Copy link
Contributor

@klokik klokik commented Nov 4, 2024

Xcode treats this dict value as a space-separated string, any spaces in the path will invalidate the path by splitting it into pieces.

Xcode happens to be doing double quoting with escaping internal quotes for the case.

@eli-schwartz
Copy link
Member

@jpakkane can you take a look at this one? I know you've blogged before about how much of a nightmare the xcode quoting rules are, so I'm afraid to merge this without your confirmation. :P

@klokik klokik force-pushed the xcode-fixes-2 branch 3 times, most recently from b36719c to b61cc6d Compare December 7, 2024 12:39
@klokik
Copy link
Contributor Author

klokik commented Dec 7, 2024

Updated to cover other header paths in this array, split out path processing into a helper function to streamline the parent function a bit

@klokik
Copy link
Contributor Author

klokik commented Dec 7, 2024

Thanks for mentioning the blog post, it was an interesting read indeed!

Xcode treats this dict value as a space-separated string, any spaces in
the path will make the path invalid by splitting it into pieces.
Split out header path processing into a helper function.
@jpakkane jpakkane merged commit 0b41b36 into mesonbuild:master Dec 16, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants