diff options
| author | Jack Nagel | 2014-08-27 17:25:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-27 17:25:13 -0500 |
| commit | 9386902cf8c1e3311337b36615ee5e2c4ec9edf4 (patch) | |
| tree | c49520c48151670e1e787e41a398cff3d1588316 /Library | |
| parent | 889996daf1414cdc0a788ea323fe72bcb05400e4 (diff) | |
| download | brew-9386902cf8c1e3311337b36615ee5e2c4ec9edf4.tar.bz2 | |
Explicitly pass options into the build object
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/build.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 006beefb0..29252ea99 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -4,6 +4,7 @@ old_trap = trap("INT") { exit! 130 } require "global" +require "build_options" require "cxxstdlib" require "keg" require "extend/ENV" @@ -13,8 +14,9 @@ require "fcntl" class Build attr_reader :formula, :deps, :reqs - def initialize(formula) + def initialize(formula, options) @formula = formula + @formula.build = BuildOptions.new(options, formula.options) if ARGV.ignore_deps? @deps = [] @@ -183,7 +185,10 @@ system "/usr/bin/sudo", "-k" trap("INT", old_trap) begin - Build.new(ARGV.formulae.first).install + formula = ARGV.formulae.first + options = Options.create(ARGV.options_only) + build = Build.new(formula, options) + build.install rescue Exception => e e.continuation = nil if ARGV.debug? Marshal.dump(e, error_pipe) |
