diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-01T12·43+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-01T12·43+0200 |
commit | b986c7f8b14c1270e012f22183737ebbaa33173d (patch) | |
tree | 15b95709bfd43fa7bcc7b52c18f45ac08c0d24fa /src/libstore | |
parent | 227a48f86f8c26c495783c5946bb75c2819bb7ac (diff) |
Pass verbosity level to build hook
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 01a3203dd909..8b869063d5e1 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -614,10 +614,11 @@ HookInstance::HookInstance() throw SysError("dupping builder's stdout/stderr"); Strings args = { - baseNameOf(buildHook), + baseNameOf(settings.buildHook), settings.thisSystem, - (format("%1%") % settings.maxSilentTime).str(), - (format("%1%") % settings.buildTimeout).str() + std::to_string(settings.maxSilentTime), + std::to_string(settings.buildTimeout), + std::to_string(verbosity) }; execv(buildHook.c_str(), stringsToCharPtrs(args).data()); |