diff options
| author | ruki <[email protected]> | 2026-02-23 22:09:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-23 22:09:09 +0800 |
| commit | ea307e0b88527bc61864766c16dfd346470b2d80 (patch) | |
| tree | e6d861ddac6f7bd1948b03c2f2425106acfea2b3 /xmake/modules | |
| parent | 46050fdf098bd5abcb78f859d3192f78f2697645 (diff) | |
| parent | 3634d880f8e48d095fe5184ac9a594923e742f10 (diff) | |
Merge pull request #7336 from luadebug/wasi
Add run wasi target
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/trybuild/cmake.lua | 4 |
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")) |
