From b894d6e246403720e05ba554fa344761d8f5ab71 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 19 May 2014 14:18:23 -0500 Subject: [PATCH] Set sysroot for non-clang compilers on 10.9 Although the correct sysroot is built into Apple's tools on 10.9, we need to continue setting it for custom compilers. --- Library/Homebrew/extend/ENV/super.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 0c6d105473..18073db463 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -72,7 +72,7 @@ module Superenv # On 10.9 the developer tools honor the correct sysroot by default. # On 10.7 and 10.8 we need to set it ourselves. - if MacOS::Xcode.without_clt? && MacOS.version <= "10.8" + if MacOS::Xcode.without_clt? && (MacOS.version <= "10.8" || compiler != :clang) self["HOMEBREW_SYSROOT"] = effective_sysroot end