aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-20 16:45:02 +0100
committerMike McQuaid2016-08-20 16:45:02 +0100
commit3c6529851991eed20c75ba4661a1734d8a889468 (patch)
tree962a5e91e9b733ac3b17b9326066c3e5197cbade /Library
parentbb4d168c4869a6b545250105a6bee43b800018ad (diff)
downloadbrew-3c6529851991eed20c75ba4661a1734d8a889468.tar.bz2
build: permit weak imports in Go reverse deps.
Go makes extensive use of weak imports so we need to allow them when building Go-using software. Closes https://github.com/Homebrew/homebrew-core/issues/4047.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 8915e948c..e50d10b04 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -79,6 +79,11 @@ class Build
ENV.activate_extensions!
+ # Go makes extensive use of weak imports.
+ if formula_deps.any? { |f| f.name == "go" }
+ ENV.permit_weak_imports
+ end
+
if superenv?
ENV.keg_only_deps = keg_only_deps
ENV.deps = formula_deps