From ea562bbd8e4ae32c26188319ce8afa7f02791c36 Mon Sep 17 00:00:00 2001 From: Jim Zhou Date: Sat, 6 Jun 2026 17:33:38 +0800 Subject: [PATCH] add condition for wasm toolchain selection --- xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 53aed809..3ab52476 100644 --- a/xmake.lua +++ b/xmake.lua @@ -17,7 +17,7 @@ if is_plat("mingw") and is_host("windows") then set_toolchains("mingw@mingw-w64") end -if is_plat("wasm") then +if is_plat("wasm") and not has_config("toolchain") then add_requires("emscripten 3.1.25") set_toolchains("emcc@emscripten") end