Closed 0123456789-jpg closed 5 months ago
Have a look at https://github.com/rust-lang/cc-rs/pull/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.
@NobodyXu
Merged this as a workaround, while waiting for #1009
We should use![屏幕快照 2024-03-12 下午7 07 06](https://github.com/rust-lang/cc-rs/assets/56025753/dfe43239-f506-4895-8ddb-9b1c85b187a8)
xcrun --show-sdk-version ...
to obtain targeted apple os version instead of--show-sdk-platform-version
, as shown in my screenshot.Closes #1001, closes #963