2 Commits
Author SHA1 Message Date
Misty De Meo 5788222022 stdenv: use Xcode SDK on PPC
The system libraries won't have an Intel slice on this platform.
2017-05-09 11:41:00 -07:00
Misty De Meo 0fefc8e622 Allow finding the 10.4u SDK 2017-05-09 11:40:12 -07:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ module Stdenv
self["CPATH"] = "#{HOMEBREW_PREFIX}/include"
prepend "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
if (sdk = MacOS.sdk_path(version)) && !MacOS::CLT.installed?
if (sdk = MacOS.sdk_path(version)) && !MacOS::CLT.installed? || Hardware::CPU.ppc?
# Extra setup to support Xcode 4.3+ without CLT.
self["SDKROOT"] = sdk
# Tell clang/gcc where system include's are:
+2
View File
@@ -80,6 +80,8 @@ module OS
opts << "#{Xcode.prefix}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX#{v}.sdk"
# Xcode < 4.3 style
opts << "/Developer/SDKs/MacOSX#{v}.sdk"
# Tiger-style
opts << "/Developer/SDKs/MacOSX#{v}u.sdk"
@sdk_path[key] = opts.map { |a| Pathname.new(a) }.detect(&:directory?)
end
end