Skip to content

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
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