Move Tab creation into build process

The parent process doesn't have access to the selected compiler, which
will be important in the next commit.

Fortunately the child process already has a filtered and massaged
ARGV, so it has enough information to build the tab itself.
This commit is contained in:
Misty De Meo 2013-07-26 23:51:48 -07:00
parent ef1d9c0cd0
commit 3ac74331a8
2 changed files with 1 additions and 2 deletions

View File

@ -170,6 +170,7 @@ class Build
begin
f.install
Tab.create(f, Options.coerce(ARGV.options_only)).write
rescue Exception => e
if ARGV.debug?
debrew e, f

View File

@ -355,8 +355,6 @@ class FormulaInstaller
raise "Empty installation" if Dir["#{f.prefix}/*"].empty?
Tab.create(f, build_argv).write # INSTALL_RECEIPT.json
rescue Exception
ignore_interrupts do
# any exceptions must leave us with nothing installed