mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Use _Exit(0) on win32, always use _Exit(1) in log_error()
This commit is contained in:
parent
5531bd7578
commit
5767e4bc4d
|
@ -509,6 +509,11 @@ int main(int argc, char **argv)
|
||||||
free(hist_list);
|
free(hist_list);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
log_flush();
|
||||||
|
#ifdef _WIN32
|
||||||
|
_Exit(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
yosys_shutdown();
|
yosys_shutdown();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -208,7 +208,7 @@ void logv_error(const char *format, va_list ap)
|
||||||
log_files = backup_log_files;
|
log_files = backup_log_files;
|
||||||
throw 0;
|
throw 0;
|
||||||
#else
|
#else
|
||||||
exit(1);
|
_Exit(1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue