feat(cli): show compiler warnings from successful actions
VoidBuildSystem CI / 1 · Requirements (push) Successful in 4s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m1s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m50s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m24s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m19s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m0s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Failing after 28s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Failing after 32s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m55s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m4s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 27s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 38s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 5m44s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 42s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 30s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 51s
VoidBuildSystem CI / 5 · Release (push) Skipped

Only failed actions printed their captured stderr, so warnings and
notes from compiles that succeeded were silently dropped. Print the
stderr of every executed (non-cached) successful action after the build.

Verified: a -Wall unused-variable warning now appears in 'vbs build'.
This commit is contained in:
faumaray committed 2026-12-06 08:23:26 +03:00
1 parent adb7b4effe
commit 7930528970
1 file changed
+10
+10
View File
@@ -789,6 +789,16 @@ int execute_build_or_test(BuildCmdOptions opts, bool run_tests) {
all_ok = false;
continue;
}
// Surface compiler warnings and notes from actions that succeeded: only
// failures used to print their captured stderr, hiding warnings entirely.
for (const auto &ar : rep->results) {
if (ar.succeeded && !ar.from_cache && !ar.stderr_data.empty()) {
std::cerr << ar.stderr_data;
if (ar.stderr_data.back() != '\n') {
std::cerr << '\n';
}
}
}
Void::Log::info("Build", "[{}] Finished in {:.2f}s ({} executed, {} cached)", prof_name,
prof_sw.elapsed_ms() / 1000.0, rep->executed_count, rep->cached_count);
std::cout << "vbs: [" << prof_name << "] built (" << rep->executed_count << " executed, "