mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Add YOSYS_ABORT_ON_LOG_ERROR environment variable for debugging.
This commit is contained in:
parent
c4a52b1b02
commit
ac906d15ce
2 changed files with 7 additions and 0 deletions
|
@ -352,6 +352,9 @@ static void logv_error_with_prefix(const char *prefix,
|
|||
log_error_atexit();
|
||||
|
||||
YS_DEBUGTRAP_IF_DEBUGGING;
|
||||
const char *e = getenv("YOSYS_ABORT_ON_LOG_ERROR");
|
||||
if (e && atoi(e))
|
||||
abort();
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
log_files = backup_log_files;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue