[win32] runtime compiles, and boots (without loading wasm module)

This commit is contained in:
martinfouilleul 2023-06-17 20:10:11 +02:00
parent f5f7c5d8ff
commit 3ba2488541
3 changed files with 7 additions and 3 deletions

View File

@ -28,9 +28,12 @@ if %target% == milepost (
if %target% == orca ( if %target% == orca (
echo building orca echo building orca
set pthread_dir=..\vcpkg\packages\pthreads_x64-windows
::copy libraries ::copy libraries
copy milepost\bin\milepost.dll bin copy milepost\bin\milepost.dll bin
copy milepost\bin\milepost.dll.lib bin copy milepost\bin\milepost.dll.lib bin
copy %pthread_dir%\bin\pthreadVC3.dll bin
::generate wasm3 api bindings ::generate wasm3 api bindings
python3 scripts\bindgen.py core src python3 scripts\bindgen.py core src
@ -48,8 +51,8 @@ if %target% == orca (
--wasm3-bindings src\io_api_bind_gen.c --wasm3-bindings src\io_api_bind_gen.c
::compile orca ::compile orca
set INCLUDES=/I src /I sdk /I ext\wasm3\source /I milepost\src /I milepost\ext /I ..\vcpkg\packages\pthreads_x64-windows\include set INCLUDES=/I src /I sdk /I ext\wasm3\source /I milepost\src /I milepost\ext /I %pthread_dir%\include
set LIBS=/LIBPATH:bin /LIBPATH:..\vcpkg\packages\pthreads_x64-windows\lib milepost.dll.lib wasm3.lib pthreadVC3.lib set LIBS=/LIBPATH:bin /LIBPATH:%pthread_dir%\lib milepost.dll.lib wasm3.lib pthreadVC3.lib
cl /Zi /Zc:preprocessor /std:c11 %INCLUDES% src\main.c /link %LIBS% /out:bin\orca.exe cl /Zi /Zc:preprocessor /std:c11 %INCLUDES% src\main.c /link %LIBS% /out:bin\orca.exe
) )

@ -1 +1 @@
Subproject commit e93bf76adcf8e26b4d039da1066847bdf7b80d1f Subproject commit d2c4acf6e2e13d251c036ab8bd51e70d9c28505f

View File

@ -285,6 +285,7 @@ char m3_type_to_tag(M3ValueType type)
return('d'); return('d');
case c_m3Type_unknown: case c_m3Type_unknown:
default:
return('!'); return('!');
} }
} }