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