diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-02-25 12:57:54 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-02-25 12:57:54 +0800 |
commit | 166a3999ce4013764046128c28fe8ac223148593 (patch) | |
tree | d65fd4bbe964d86a6124d12764ec403a2d721cde /tools/minicargo/build.cpp | |
parent | 8e002015416954fa5e9444c9d81ec7f4b291562f (diff) | |
download | mrust-166a3999ce4013764046128c28fe8ac223148593.tar.gz |
minicargo - Fix bug with parallel builds and sanity check
Diffstat (limited to 'tools/minicargo/build.cpp')
-rw-r--r-- | tools/minicargo/build.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/minicargo/build.cpp b/tools/minicargo/build.cpp index d7a8143e..bde2b09d 100644 --- a/tools/minicargo/build.cpp +++ b/tools/minicargo/build.cpp @@ -266,7 +266,7 @@ bool BuildList::build(BuildOptions opts, unsigned num_jobs) int complete_package(unsigned index, const ::std::vector<Entry>& list) { int rv = 0; - DEBUG("Completed " << list[index].package->name()); + DEBUG("Completed " << list[index].package->name() << " (" << list[index].dependents.size() << " dependents)"); for(auto d : list[index].dependents) { @@ -463,6 +463,7 @@ bool BuildList::build(BuildOptions opts, unsigned num_jobs) { return false; } + state = ::std::move(queue.state); #else while( !state.build_queue.empty() ) { |