Skip to content

Commit

Permalink
Merge pull request #10072 from carlocab/big-sur-sdk-path
Browse files Browse the repository at this point in the history
sdk: use unversioned SDK path on Big Sur
  • Loading branch information
MikeMcQuaid authored Dec 22, 2020
2 parents 962bd8f + 3f0ed01 commit b4303c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Homebrew/os/mac/sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ def sdk_paths
paths[OS::Mac::Version.new(version)] = sdk_path if version.present?
end

# Use unversioned SDK path on Big Sur to avoid issues such as:
# https://github.com/Homebrew/homebrew-core/issues/67075
if OS::Mac.version >= :big_sur
sdk_path = File.join(sdk_prefix, "MacOSX.sdk")
version = OS::Mac.full_version
paths[version] = sdk_path if File.directory?(sdk_path)
end

paths
else
{}
Expand Down

0 comments on commit b4303c2

Please sign in to comment.