From d904a3713800409f376b78021b7d890c7c5f505f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 10 Nov 2018 23:50:08 +0100 Subject: [PATCH] flush logs when throwing an assertion_failure Signed-off-by: Clifford Wolf --- common/nextpnr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/nextpnr.cc b/common/nextpnr.cc index 4e6407b2..2a581cc6 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -18,6 +18,7 @@ */ #include "nextpnr.h" +#include "log.h" NEXTPNR_NAMESPACE_BEGIN @@ -25,6 +26,7 @@ assertion_failure::assertion_failure(std::string msg, std::string expr_str, std: : runtime_error("Assertion failure: " + msg + " (" + filename + ":" + std::to_string(line) + ")"), msg(msg), expr_str(expr_str), filename(filename), line(line) { + log_flush(); } void IdString::set(const BaseCtx *ctx, const std::string &s)