stdenv: use Xcode SDK on PPC

The system libraries won't have an Intel slice on this platform.
This commit is contained in:
Misty De Meo committed 2017-05-09 11:41:00 -07:00
1 parent 0fefc8e622
commit 5788222022
1 file changed
+1 -1
+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: