-
Notifications
You must be signed in to change notification settings - Fork 946
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
[feature] Add detect_api function to detect the os.sdk_version setting on macOS #16258
Comments
Hi @jwillikers I am having a look at this. I think it might be possible, but I'd like to understand it a bit better. What would be the desired interface for this api? What about the |
I was just thinking in terms of the desktop sdk, which is what
For the interface, the name of the {% set sdk_version = detect_api.detect_sdk_version(sdk="macosx") %}
[settings]
os = "Macos"
os.sdk_version = {{ sdk_version }} I think the most confusing aspect would likely be that |
I agree that this would be a great extension. |
I am adding a simple method in #16355, if you want to give it a try running from source from my branch, that would be good feedback (I don't have OSX, just relying on CI) |
What is your suggestion?
The
os.sdk_version
setting for macOS is one of the settings that regularly needs updated when macOS updates. It would be great if there was adetect_api
function to be able to determine this value automatically in the profiles.The output from the command
xcrun --sdk macosx --show-sdk-version
can be trimmed to get the exact version of the SDK, i.e.14.5
.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: