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:
parent
ef1d9c0cd0
commit
3ac74331a8
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user