From 6702b173360229ca3c353f7df1a2839bc585fdde Mon Sep 17 00:00:00 2001 From: werner mendizabal Date: Wed, 28 Aug 2024 18:39:38 -0500 Subject: [PATCH 1/2] Update wasm build to use bigint godot-cpp does not use the same compilation flags for wasm as godot. This change fixes import errors from mismatched function signatures. --- tools/web.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/web.py b/tools/web.py index dea42b26b..fff2d00a8 100644 --- a/tools/web.py +++ b/tools/web.py @@ -46,6 +46,10 @@ def generate(env): env.Append(CCFLAGS=["-sSUPPORT_LONGJMP='wasm'"]) env.Append(LINKFLAGS=["-sSUPPORT_LONGJMP='wasm'"]) + # Use big int + env.Append(CCFLAGS=["-sWASM_BIGINT"]) + env.Append(LINKFLAGS=["-sWASM_BIGINT"]) + env.Append(CPPDEFINES=["WEB_ENABLED", "UNIX_ENABLED"]) common_compiler_flags.generate(env) From b02717f8a6456d294465a9fbb42650103fee2fa6 Mon Sep 17 00:00:00 2001 From: werner mendizabal Date: Mon, 23 Sep 2024 09:11:16 -0500 Subject: [PATCH 2/2] Only update linker flags --- tools/web.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/web.py b/tools/web.py index fff2d00a8..fb173c3e2 100644 --- a/tools/web.py +++ b/tools/web.py @@ -47,7 +47,6 @@ def generate(env): env.Append(LINKFLAGS=["-sSUPPORT_LONGJMP='wasm'"]) # Use big int - env.Append(CCFLAGS=["-sWASM_BIGINT"]) env.Append(LINKFLAGS=["-sWASM_BIGINT"]) env.Append(CPPDEFINES=["WEB_ENABLED", "UNIX_ENABLED"])