bugfix: windows build for real this time
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 15:54:20 +0000 (10:54 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 15:54:20 +0000 (10:54 -0500)
build.bat
compiler/src/onyx.c

index 733e4471546c1ab9635ae8373439a502e3ab2af6..c42a3340c86afafeb2dfb1576ddbcfe45e3726bc 100644 (file)
--- 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
index d5c98dd38e21d01dc45ac694d7cb104a737dee63..8de0c8b2dd505244780a24aefadbec42cbb91b66 100644 (file)
@@ -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: