Browse Source

Fix compile progress counter

default_compile_flags
vector-of-bool 5 years ago
parent
commit
b28dbd417c
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/dds/build/plan/compile_exec.cpp

+ 4
- 3
src/dds/build/plan/compile_exec.cpp View File

@@ -205,11 +205,12 @@ bool dds::detail::compile_all(const ref_vector<const compile_file_plan>& compile
auto each_realized = //
compiles //
| views::transform([&](auto&& plan) { return realize_plan(plan, env); }) //
| views::filter([&](auto&& real) { return should_compile(real, env); });
| views::filter([&](auto&& real) { return should_compile(real, env); }) //
| ranges::to_vector;

const auto total = compiles.size();
const auto total = each_realized.size();
const auto max_digits = fmt::format("{}", total).size();
compile_counter counter{{0}, total, max_digits};
compile_counter counter{{1}, total, max_digits};

std::vector<deps_info> all_new_deps;
std::mutex mut;

Loading…
Cancel
Save