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.
This commit is contained in:
parent
bb4d168c48
commit
3c65298519
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user