mirror of
https://github.com/YosysHQ/yosys
synced 2025-12-18 18:28:35 +00:00
Merge pull request #5524 from rocallahan/single-thread-log
Check that we don't use logging during multithreading
This commit is contained in:
commit
5594b817cd
1 changed files with 6 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ static void logv_string(std::string_view format, std::string str) {
|
||||||
|
|
||||||
void log_formatted_string(std::string_view format, std::string str)
|
void log_formatted_string(std::string_view format, std::string str)
|
||||||
{
|
{
|
||||||
|
log_assert(!Multithreading::active());
|
||||||
|
|
||||||
if (log_make_debug && !ys_debug(1))
|
if (log_make_debug && !ys_debug(1))
|
||||||
return;
|
return;
|
||||||
logv_string(format, std::move(str));
|
logv_string(format, std::move(str));
|
||||||
|
|
@ -210,6 +212,8 @@ void log_formatted_string(std::string_view format, std::string str)
|
||||||
|
|
||||||
void log_formatted_header(RTLIL::Design *design, std::string_view format, std::string str)
|
void log_formatted_header(RTLIL::Design *design, std::string_view format, std::string str)
|
||||||
{
|
{
|
||||||
|
log_assert(!Multithreading::active());
|
||||||
|
|
||||||
bool pop_errfile = false;
|
bool pop_errfile = false;
|
||||||
|
|
||||||
log_spacer();
|
log_spacer();
|
||||||
|
|
@ -249,6 +253,8 @@ void log_formatted_header(RTLIL::Design *design, std::string_view format, std::s
|
||||||
|
|
||||||
void log_formatted_warning(std::string_view prefix, std::string message)
|
void log_formatted_warning(std::string_view prefix, std::string message)
|
||||||
{
|
{
|
||||||
|
log_assert(!Multithreading::active());
|
||||||
|
|
||||||
bool suppressed = false;
|
bool suppressed = false;
|
||||||
|
|
||||||
for (auto &re : log_nowarn_regexes)
|
for (auto &re : log_nowarn_regexes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue