parent
e9d45a6692
commit
d5ff4f5327
@ -15,10 +15,6 @@ module HomebrewArgvExtension
|
|||||||
value "cc"
|
value "cc"
|
||||||
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
|
||||||
|
@ -731,8 +731,8 @@ class FormulaInstaller
|
|||||||
args << "--cc=#{ARGV.cc}" if ARGV.cc
|
args << "--cc=#{ARGV.cc}" if ARGV.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