aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-16 13:47:46 +0100
committerMike McQuaid2016-08-16 15:26:28 +0100
commitb33fe79478992da827317111370ab15d280e72c5 (patch)
treeec34d4acfebeb3a9d604b0bb8450dd0219820d64 /Library
parent74d4479246778ff73756fce2208ef04f2c45aafb (diff)
downloadbrew-b33fe79478992da827317111370ab15d280e72c5.tar.bz2
mac/ENV/shared: add check for disabling weak imports.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/os/mac/extend/ENV/shared.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb b/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb
index 7f81ffeb7..a33747203 100644
--- a/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb
@@ -1,2 +1,6 @@
module SharedEnvExtension
+ def no_weak_imports?
+ return false unless compiler == :clang
+ MacOS::Xcode.version >= "8.0" || MacOS::CLT.version >= "8.0"
+ end
end