mcl/assert: Flush stderr
This commit is contained in:
parent
da45f689b9
commit
65ed1e7054
2 changed files with 2 additions and 1 deletions
2
externals/mcl/CMakeLists.txt
vendored
2
externals/mcl/CMakeLists.txt
vendored
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
project(mcl LANGUAGES CXX VERSION 0.1.7)
|
||||
project(mcl LANGUAGES CXX VERSION 0.1.8)
|
||||
|
||||
# Project options
|
||||
option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON)
|
||||
|
|
1
externals/mcl/src/assert.cpp
vendored
1
externals/mcl/src/assert.cpp
vendored
|
@ -14,6 +14,7 @@ namespace mcl::detail {
|
|||
[[noreturn]] void assert_terminate_impl(fmt::string_view msg, fmt::format_args args) {
|
||||
fmt::print(stderr, "assertion failed: ");
|
||||
fmt::vprint(stderr, msg, args);
|
||||
std::fflush(stderr);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue