Skip to content

Commit 709d13e

Browse files
committed
fix(cli): hide compile_commands progress step from build output
2 parents 885763c + 6f77473 commit 709d13e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/cmake/CMakeBuild.cpp

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ namespace vix::cli::build
368368
return true;
369369
};
370370

371+
auto should_skip_progress_line = [](const std::string &line) -> bool
372+
{
373+
return line.find("Copy compile_commands.json to project root") != std::string::npos;
374+
};
375+
371376
auto clear_progress_line = [&]() -> void
372377
{
373378
if (quiet)
@@ -514,8 +519,11 @@ namespace vix::cli::build
514519

515520
if (progressOnly && is_progress_line(line))
516521
{
517-
currentProgressLine = line;
518-
render_progress_line(currentProgressLine);
522+
if (!should_skip_progress_line(line))
523+
{
524+
currentProgressLine = line;
525+
render_progress_line(currentProgressLine);
526+
}
519527
}
520528
else if (should_echo_line(line))
521529
{
@@ -573,8 +581,11 @@ namespace vix::cli::build
573581
{
574582
if (progressOnly && is_progress_line(consoleBuf))
575583
{
576-
currentProgressLine = consoleBuf;
577-
render_progress_line(currentProgressLine);
584+
if (!should_skip_progress_line(consoleBuf))
585+
{
586+
currentProgressLine = consoleBuf;
587+
render_progress_line(currentProgressLine);
588+
}
578589
}
579590
else if (should_echo_line(consoleBuf))
580591
{

0 commit comments

Comments
 (0)