build: delete post_superenv_hacks

This commit is contained in:
fn ⌃ ⌥ 2021-09-30 12:54:31 -07:00 committed by GitHub
parent dbf0405f43
commit aabf3f64ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,14 +35,6 @@ class Build
end end
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) def effective_build_options_for(dependent)
args = dependent.build.used_options args = dependent.build.used_options
args |= Tab.for_formula(dependent).used_options args |= Tab.for_formula(dependent).used_options
@ -92,7 +84,6 @@ class Build
build_bottle: args.build_bottle?, build_bottle: args.build_bottle?,
bottle_arch: args.bottle_arch, bottle_arch: args.bottle_arch,
) )
post_superenv_hacks
reqs.each do |req| reqs.each do |req|
req.modify_build_environment( req.modify_build_environment(
env: args.env, cc: args.cc, build_bottle: args.build_bottle?, bottle_arch: args.bottle_arch, env: args.env, cc: args.cc, build_bottle: args.build_bottle?, bottle_arch: args.bottle_arch,