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

glfw: update system_sdk to match latest Zig master macOS version targeting #107

Merged
merged 6 commits into from
Nov 27, 2021

Conversation

slimsag
Copy link
Member

@slimsag slimsag commented Nov 27, 2021

The latest Zig master supports specifying a specific macOS version for libc, via
the target triple (ziglang/zig#10215):

  • x86_64-macos.10 (Catalina)
  • x86_64-macos.11 (Big Sur)
  • x86_64-macos.12 (Monterey)
  • aarch64-macos.11 (Big Sur)
  • aarch64-macos.12 (Monterey)

Mach's system_sdk.zig can now download the relevant XCode framework stubs for Big Sur (11) and Monterey (12). Although we don't have an SDK for Catalina (10) currently, we use the Big Sur (11) SDK in that case and it generally works fine.
By default, Zig targets the N-3 version (e.g. x86_64-macos defaults to x86_64-macos.10).

Targeting the minimum supported version is useful for compatability, it guarantees the produced binary will run on any later macOS version. Targeting the newer version can be useful if you wish to use newer APIs not available in previous versions.

Fixes #102

Signed-off-by: Stephen Gutekanst stephen@hexops.com

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

@slimsag slimsag added the glfw label Nov 27, 2021
slimsag added a commit that referenced this pull request Nov 27, 2021
See #107

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
slimsag added a commit that referenced this pull request Nov 27, 2021
See #107

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
…eting

The latest Zig master supports specifying a specific macOS version for libc, via
the target triple (ziglang/zig#10215):

* x86_64-macos.10 (Catalina)
* x86_64-macos.11 (Big Sur)
* x86_64-macos.12 (Monterey)
* aarch64-macos.11 (Big Sur)
* aarch64-macos.12 (Monterey)

Mach's `system_sdk.zig` can now download the relevant XCode framework stubs
for Big Sur (11) and Monterey (12). Although we don't have an SDK for Catalina (10)
currently, we use the Big Sur (11) SDK in that case and it generally works fine.
By default, Zig targets the N-3 version (e.g. `x86_64-macos` defaults to `x86_64-macos.10`).

Targeting the minimum supported version is useful for compatability, it guarantees the produced
binary will run on any later macOS version. Targeting the newer version can be useful if you
wish to use newer APIs not available in previous versions.

Fixes #102

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
@slimsag slimsag merged commit c68a288 into main Nov 27, 2021
@slimsag slimsag deleted the sg/system-sdk-sync branch November 27, 2021 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update system_sdk to reflect new Zig macOS version targeting
1 participant