-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
os/{mac,mac/sdk}: refactor out sdk_version #10150
Conversation
Review period will end on 2020-12-29 at 00:00:00 UTC. |
One limitation of this is that still returns a path to I can fix that if that's not desirable, but I currently only have ugly hacks in mind. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work here so far @carlocab!
I don't think I actually need the |
Might be worth making it |
Well, It doesn't hurt, however. Updated commits will be up when |
Looks good, thanks again @carlocab! |
Cheers @MikeMcQuaid. Thanks for bearing with my glaring lack of familiarity with Ruby. |
Review period ended. |
Weird, there look to be two "CI / test everything (macOS)" runs, but the first failed because it never really started. [1] Going to rebase and force push to try to restart the tests. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?brew man
locally and committed any changes?The changes here rely on #10129. Merge that PR before this one. (Tests will pass when that is done.)
This PR:
sdk_version
, as it is no longer in use (cf. os/mac/pkgconfig: merge pc files for 11.1 and 11.0 #10129 (comment))brew/Library/Homebrew/os/mac/sdk.rb
Line 64 in da0d7ef
brew/Library/Homebrew/os/mac/sdk.rb
Lines 96 to 101 in da0d7ef
OS::Mac.version
in Big Sur.Since
OS::Mac.version
returns only the major version in Big Sur, we use that to populate thesdk_paths
hash with the key-value pairOS::Mac.version.major => /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
.This alleviates the concern expressed here: #10112 (comment)
This also allows you to request for the versioned SDK path if required:
Finer-grained control over the exact SDK path could prove useful when macOS 12 hits.