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

Fix xcrun sdk version arg #1007

Merged
merged 1 commit into from Apr 13, 2024
Merged

Conversation

0123456789-jpg
Copy link
Contributor

@0123456789-jpg 0123456789-jpg commented Mar 12, 2024

We should use xcrun --show-sdk-version ... to obtain targeted apple os version instead of --show-sdk-platform-version, as shown in my screenshot.
屏幕快照 2024-03-12 下午7 07 06

Closes #1001, closes #963

@BlackHoleFox
Copy link
Contributor

Have a look at #1009 if you wouldn't mind as well. It ports some of clang's SDK reading logic into cc for this purpose. I'm worried about relying on --show-sdk-version always lining up with the deployment target and the other way also avoids needing xcrun to be present.

@0123456789-jpg
Copy link
Contributor Author

@NobodyXu

@NobodyXu
Copy link
Collaborator

NobodyXu commented Mar 18, 2024

#1009 sounds like a better solution, given that the json parser can be simplified in it.

@NobodyXu NobodyXu merged commit f83109b into rust-lang:main Apr 13, 2024
21 checks passed
@NobodyXu
Copy link
Collaborator

Merged this as a workaround, while waiting for #1009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants