mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Revert "Swift: auto-flush logs at exit"
This reverts commit 0d9dcb161f.
This turns out to introduce a subtle bug related to destruction order
between `Log::instance()` and the `Logger` instances.
This commit is contained in:
@@ -72,6 +72,7 @@ void buildTarget(Target& target, bool dryRun) {
|
||||
if (!exec(argv)) {
|
||||
DIAGNOSE_ERROR(build_command_failed, "The detected build command failed (tried {})",
|
||||
absl::StrJoin(argv, " "));
|
||||
codeql::Log::flush();
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user