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