1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

write build output to a log file

Summary:
Update the getdeps builders to save all command output to a log file in the
build directory.  This makes it easier to go back after the fact and look at
the config options selected by the build run.

Reviewed By: wez

Differential Revision: D18777059

fbshipit-source-id: 86d3ffa48ec992fe90c59a3835e18f08310ed88c
This commit is contained in:
Adam Simpkins
2019-12-06 11:57:56 -08:00
committed by Facebook Github Bot
parent 6f1e999c3a
commit e18cb6a859
2 changed files with 79 additions and 9 deletions

View File

@@ -59,7 +59,8 @@ class BuilderBase(object):
if cmd_prefix:
cmd = cmd_prefix + cmd
run_cmd(cmd=cmd, env=env, cwd=cwd or self.build_dir)
log_file = os.path.join(self.build_dir, "getdeps_build.log")
run_cmd(cmd=cmd, env=env, cwd=cwd or self.build_dir, log_file=log_file)
def build(self, install_dirs, reconfigure):
print("Building %s..." % self.manifest.name)