Library/Homebrew/os/mac/sdk.rb
# While CLT SDKs existed prior to Xcode 10, those packages also
# installed a traditional Unix-style header layout and we prefer
# using that
# As of Xcode 10, the Unix-style headers are installed via a
# separate package, so we can't rely on their being present.
# This will only look up SDKs on Xcode 10 or newer, and still
# return nil SDKs for Xcode 9 and older.
While CLT SDKs existed prior to Xcode 10, those packages also
installed a traditional Unix-style header layout and we prefer
using that
As of Xcode 10, the Unix-style headers are installed via a
separate package, so we can't rely on their being present.
This will only look up SDKs on Xcode 10 or newer, and still
return nil SDKs for Xcode 9 and older.
While CLT SDKs existed prior to Xcode 10 those packages also installed a traditional Unix - style header layout and we prefer using that As of Xcode 10 the Unix - style headers are installed via a separate package so we can ' t rely on their being present . This will only look up SDKs on Xcode 10 or newer and still return nil SDKs for Xcode 9 and older .
def sdk_prefix
        @sdk_prefix ||= begin
          if !CLT.provides_sdk?
            ""
          else
            "#{CLT::PKG_PATH}/SDKs"
          end
        end
      end
def sdk_prefix @sdk_prefix ||= begin if ! CLT . provides_sdk? "" else "#{CLT::PKG_PATH}/SDKs" end end end
While CLT SDKs existed prior to Xcode 10, those packages also
installed a traditional Unix-style header layout and we prefer
using that
As of Xcode 10, the Unix-style headers are installed via a
separate package, so we can't rely on their being present.
While CLT SDKs existed prior to Xcode 10 those packages also installed a traditional Unix - style header layout and we prefer using that As of Xcode 10 the Unix - style headers are installed via a separate package so we can ' t rely on their being present .