From aabf3f64ae697aa388fe9154e60b1d9299d63533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fn=20=E2=8C=83=20=E2=8C=A5?= <70830482+FnControlOption@users.noreply.github.com> Date: Thu, 30 Sep 2021 12:54:31 -0700 Subject: [PATCH] build: delete post_superenv_hacks --- Library/Homebrew/build.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 125e476803..0bc7819b43 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -35,14 +35,6 @@ class Build end end - def post_superenv_hacks - # Only allow Homebrew-approved directories into the PATH, unless - # a formula opts-in to allowing the user's path. - return if !formula.env.userpaths? && reqs.none? { |rq| rq.env.userpaths? } - - ENV.userpaths! - end - def effective_build_options_for(dependent) args = dependent.build.used_options args |= Tab.for_formula(dependent).used_options @@ -92,7 +84,6 @@ class Build build_bottle: args.build_bottle?, bottle_arch: args.bottle_arch, ) - post_superenv_hacks reqs.each do |req| req.modify_build_environment( env: args.env, cc: args.cc, build_bottle: args.build_bottle?, bottle_arch: args.bottle_arch,