aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 0c6d10547..18073db46 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