diff options
Diffstat (limited to 'src/buildtool/main/analyse.cpp')
-rw-r--r-- | src/buildtool/main/analyse.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buildtool/main/analyse.cpp b/src/buildtool/main/analyse.cpp index 13214463..f1d37af9 100644 --- a/src/buildtool/main/analyse.cpp +++ b/src/buildtool/main/analyse.cpp @@ -134,11 +134,12 @@ namespace Target = BuildMaps::Target; AnalysedTargetPtr target{}; // we should only report served export targets if a serve endpoint exists - bool has_serve = context->serve.has_value(); - std::atomic<bool> done{false}; - std::condition_variable cv{}; + bool const has_serve = context->serve != nullptr; auto reporter = ExportsProgressReporter::Reporter( context->statistics, context->progress, has_serve, logger); + + std::atomic<bool> done{false}; + std::condition_variable cv{}; auto observer = std::thread([reporter, &done, &cv]() { reporter(&done, &cv); }); |