From: Brendan Hansen Date: Mon, 15 May 2023 15:54:20 +0000 (-0500) Subject: bugfix: windows build for real this time X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=28b7142b4bcc956d72aa4f772f9bc3546c764d5e;p=onyx.git bugfix: windows build for real this time --- diff --git a/build.bat b/build.bat index 733e4471..c42a3340 100644 --- a/build.bat +++ b/build.bat @@ -22,7 +22,7 @@ del *.ilk > NUL 2> NUL del *.obj > NUL 2> NUL del misc\icon_resource.res -cl /MT /std:c17 /TC /I compiler/include /I shared/include /D_USRDLL /D_WINDLL runtime\onyx_runtime.c /link /DLL ws2_32.lib /OUT:onyx_runtime.dll +cl /MT /std:c17 /TC /I compiler/include /I shared/include /D_USRDLL /D_WINDLL runtime\onyx_runtime.c /link /DLL ws2_32.lib bcrypt.lib /OUT:onyx_runtime.dll del onyx_runtime.obj del onyx_runtime.lib diff --git a/compiler/src/onyx.c b/compiler/src/onyx.c index d5c98dd3..8de0c8b2 100644 --- a/compiler/src/onyx.c +++ b/compiler/src/onyx.c @@ -19,7 +19,7 @@ extern struct bh_allocator global_heap_allocator; #include "wasm_emit.h" #include "doc.h" -#define VERSION "v0.1.0" +#define VERSION "v0.1.1" Context context; @@ -1049,9 +1049,11 @@ int main(int argc, char *argv[]) { } break; + #ifdef _BH_LINUX case ONYX_COMPILE_ACTION_WATCH: onyx_watch(&compile_opts); break; + #endif #ifdef ENABLE_RUN_WITH_WASMER case ONYX_COMPILE_ACTION_RUN: