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

build: macOS toolchain fixups #1765

Merged
merged 2 commits into from
Jan 14, 2025
Merged

build: macOS toolchain fixups #1765

merged 2 commits into from
Jan 14, 2025

Conversation

jcm93
Copy link
Contributor

@jcm93 jcm93 commented Jan 12, 2025

Changes the regex used to determine our macOS SDK version to match on Command Line Tools install paths and not just Xcode install paths, since we do not require Xcode to build ares, just the Xcode Command Line Tools.

Also fixes up how we handle the macOS deployment target.

(boring details below)

CMake is meant to transparently derive and pass appropriate compiler options for our minimum deployment target. It does this via the CMAKE_OSX_DEPLOYMENT_TARGET variable. This variable can be initialized either by the project (which must happen before the project() call), or else as part of the project() call, CMake will inherit it from the MACOSX_DEPLOYMENT_TARGET environment variable, or else "compute it based on the host platform" (whatever that means).

Our desired behavior is to set it to 10.13, except for local builds, where we should respect the MACOSX_DEPLOYMENT_TARGET environment variable (if it is set). This PR enables that behavior.

@LukeUsher LukeUsher merged commit 4a9b77a into ares-emulator:master Jan 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants