From 1c73c1a64a8653571fd668a04c0d0aebae71f67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 15 Dec 2023 07:55:48 -0800 Subject: [PATCH] Fixed wasm build. --- scripts/bgfx.lua | 5 ----- scripts/genie.lua | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index b0b9afc20..cbcb51c7a 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -153,11 +153,6 @@ function bgfxProjectBase(_kind, _defines) path.join(BGFX_DIR, "3rdparty/khronos"), } - configuration { "wasm*" } - linkoptions { - "-sGL_ENABLE_GET_PROC_ADDRESS", - } - configuration {} includedirs { diff --git a/scripts/genie.lua b/scripts/genie.lua index 3795922bf..fcf79afb4 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -362,6 +362,7 @@ function exampleProjectDefaults() kind "ConsoleApp" linkoptions { + "-sGL_ENABLE_GET_PROC_ADDRESS", "-s TOTAL_MEMORY=32MB", "-s ALLOW_MEMORY_GROWTH=1", "--preload-file ../../../examples/runtime@/"