aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-10-14 18:34:44 +0200
committerClifford Wolf <clifford@clifford.at>2016-10-14 18:36:02 +0200
commitfa535c0b0041621d0128087cd0236cfd5eb36e48 (patch)
treebe7017c8cbd351674b56ae7206e5e95a1d6f4c63 /kernel
parente4c5ee9b893bf7dd2b9102934ebb1f1a6f0671a9 (diff)
downloadyosys-fa535c0b0041621d0128087cd0236cfd5eb36e48.tar.gz
yosys-fa535c0b0041621d0128087cd0236cfd5eb36e48.tar.bz2
yosys-fa535c0b0041621d0128087cd0236cfd5eb36e48.zip
Some minor build fixes for Visual C
Diffstat (limited to 'kernel')
-rw-r--r--kernel/driver.cc4
-rw-r--r--kernel/log.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 5cfc4171d..f8d00c38d 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -510,7 +510,9 @@ int main(int argc, char **argv)
#endif
log_flush();
-#ifdef _WIN32
+#if defined(_MSC_VER)
+ _exit(0);
+#elif defined(_WIN32)
_Exit(0);
#endif
diff --git a/kernel/log.cc b/kernel/log.cc
index 3f1d88819..abc401f55 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -207,6 +207,8 @@ void logv_error(const char *format, va_list ap)
#ifdef EMSCRIPTEN
log_files = backup_log_files;
throw 0;
+#elif defined(_MSC_VER)
+ _exit(1);
#else
_Exit(1);
#endif