HOMEBREW_PATCHELF_RB_WRITE: Move logic to test-bot

This commit is contained in:
Shaun Jackman 2020-11-26 11:53:31 -08:00
parent 8a4299d028
commit 65bc39f952
2 changed files with 1 additions and 3 deletions

View File

@ -84,8 +84,6 @@ module Homebrew
end
def bottle
ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"] = "1" unless ENV["HOMEBREW_PATCHELF_RB_WRITE"].present?
args = bottle_args.parse
return merge(args: args) if args.merge?

View File

@ -101,7 +101,7 @@ module ELFShim
def patch!(interpreter: nil, rpath: nil)
return if interpreter.blank? && rpath.blank?
if HOMEBREW_PATCHELF_RB_WRITE && ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank?
if HOMEBREW_PATCHELF_RB_WRITE
save_using_patchelf_rb interpreter, rpath
else
save_using_patchelf interpreter, rpath