From: Brendan Hansen Date: Mon, 18 Jul 2022 12:44:11 +0000 (-0500) Subject: fixed github builds X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=e9b5df80adbaa121cfb6e4dac2ee711336a8cbeb;p=onyx.git fixed github builds --- diff --git a/build.sh b/build.sh index b65fd189..18021006 100755 --- a/build.sh +++ b/build.sh @@ -16,8 +16,8 @@ CC='gcc' # The architecture of your system. If your not sure, leave this alone. ARCH="$(uname -m)" -RUNTIME_LIBRARY="ovmwasm" -# RUNTIME_LIBRARY="wasmer" +# RUNTIME_LIBRARY="ovmwasm" +RUNTIME_LIBRARY="wasmer" # Comment this line if you do not want the above library installed, # and do not with to have the Onyx runtime. diff --git a/src/wasm_emit.c b/src/wasm_emit.c index d016b8a4..b25eba7a 100644 --- a/src/wasm_emit.c +++ b/src/wasm_emit.c @@ -4105,7 +4105,7 @@ void emit_entity(Entity* ent) { void onyx_wasm_module_link(OnyxWasmModule *module, OnyxWasmLinkOptions *options) { // If the pointer size is going to change, // the code will probably need to be altered. - static_assert(POINTER_SIZE == 4); + assert(POINTER_SIZE == 4); module->memory_min_size = options->memory_min_size; module->memory_max_size = options->memory_max_size;