build: don't add implicit dependencies to build environment

This commit is contained in:
Bo Anderson 2023-06-22 22:04:13 +01:00
parent c4077aa076
commit 2d1e9eedbf
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -57,7 +57,7 @@ class Build
build = effective_build_options_for(dependent)
if dep.prune_from_option?(build) ||
dep.prune_if_build_and_not_dependent?(dependent, formula) ||
(dep.test? && !dep.build?)
(dep.test? && !dep.build?) || dep.implicit?
Dependency.prune
elsif dep.build?
Dependency.keep_but_prune_recursive_deps