summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/trybuild/cmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/action/trybuild/cmake.lua')
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index c5b807fb9..4243a7ce8 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -281,6 +281,10 @@ end
-- get configs for wasm
function _get_configs_for_wasm(configs)
+ if config.get("toolchain") == "wasi" then
+ _get_configs_for_cross(configs)
+ return
+ end
local emsdk = find_emsdk()
assert(emsdk and emsdk.emscripten, "emscripten not found!")
local emscripten_cmakefile = find_file("Emscripten.cmake", path.join(emsdk.emscripten, "cmake/Modules/Platform"))