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

Pass deployment target with -m*-version-min= #1339

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

madsmtm
Copy link
Collaborator

@madsmtm madsmtm commented Jan 1, 2025

Clang's supports many ways of passing the deployment target, and prefers that you use the -target flag for doing so.

This works poorly work with configuration files though, which Homebrew's LLVM uses, so we use the -mmacosx-version-min=, -miphoneos-version-min=, -mtargetos= etc. flags to pass the deployment target instead. See also discussion in Homebrew/homebrew-core#197532.

I will be submitting a similar PR to rustc at some point to fix this in there too.

Fixes #1278.

@madsmtm madsmtm added bug O-apple Apple targets and toolchains labels Jan 1, 2025
@madsmtm madsmtm force-pushed the deployment-target-version branch from 93ae083 to 5fc270a Compare January 1, 2025 19:33
Clang's supports many ways of passing the deployment target, and prefers
that you use the `-target` flag for doing so.

This works poorly work with configuration files, which Homebrew's LLVM
uses, so we use the `-mmacosx-version-min=`, `-miphoneos-version-min=`,
`-mtargetos=` etc. flags to pass the deployment target instead.
Since we no longer version the LLVM target, it is no longer that
important to call out that the LLVM target is unversioned.
@madsmtm madsmtm force-pushed the deployment-target-version branch from 5fc270a to e1d028b Compare January 1, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug O-apple Apple targets and toolchains
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in 1.1.32 - unable to build on mac m1
1 participant