commit
cd4d3b988e
@ -11,10 +11,6 @@ module HomebrewArgvExtension
|
|||||||
flag?("--debug") || !ENV["HOMEBREW_DEBUG"].nil?
|
flag?("--debug") || !ENV["HOMEBREW_DEBUG"].nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def env
|
|
||||||
value "env"
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def options_only
|
def options_only
|
||||||
|
|||||||
@ -6,7 +6,7 @@ require "extend/ENV/std"
|
|||||||
require "extend/ENV/super"
|
require "extend/ENV/super"
|
||||||
|
|
||||||
def superenv?
|
def superenv?
|
||||||
ARGV.env != "std" && Superenv.bin
|
Homebrew.args.env != "std" && Superenv.bin
|
||||||
end
|
end
|
||||||
|
|
||||||
module EnvActivation
|
module EnvActivation
|
||||||
|
|||||||
@ -732,8 +732,8 @@ class FormulaInstaller
|
|||||||
args << "--cc=#{Homebrew.args.cc}" if Homebrew.args.cc
|
args << "--cc=#{Homebrew.args.cc}" if Homebrew.args.cc
|
||||||
args << "--keep-tmp" if Homebrew.args.keep_tmp?
|
args << "--keep-tmp" if Homebrew.args.keep_tmp?
|
||||||
|
|
||||||
if ARGV.env
|
if Homebrew.args.env.present?
|
||||||
args << "--env=#{ARGV.env}"
|
args << "--env=#{Homebrew.args.env}"
|
||||||
elsif formula.env.std? || formula.deps.select(&:build?).any? { |d| d.name == "scons" }
|
elsif formula.env.std? || formula.deps.select(&:build?).any? { |d| d.name == "scons" }
|
||||||
args << "--env=std"
|
args << "--env=std"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user