summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-10 22:05:49 +0800
committerruki <[email protected]>2026-04-10 22:05:49 +0800
commit7be3d4a277469881ea7c2403e28885c7f8605c5f (patch)
tree8678a0768ee6bcdaa58f0438196f4b1f58793633
parent6c19bc3f69104af23660ecec7f1c6fce755be6e4 (diff)
fix install package for wasm
-rw-r--r--xmake/modules/private/utils/target.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/target.lua b/xmake/modules/private/utils/target.lua
index 5ec96c918..8790b25fc 100644
--- a/xmake/modules/private/utils/target.lua
+++ b/xmake/modules/private/utils/target.lua
@@ -247,7 +247,8 @@ function get_target_package_libfiles(target, opt)
end
end
-- we can only reserve used libraries
- if project.policy("install.strip_packagelibs") then
+ -- skip wasm platform, because wasm binaries (.html/.js/.wasm) don't support deplibs analysis
+ if project.policy("install.strip_packagelibs") and not target:is_plat("wasm") then
if target:is_binary() or target:is_shared() or opt.binaryfile then
-- we need to get all deplibs, e.g. app -> libfoo.so -> libbar.so ...
-- @see https://github.com/xmake-io/xmake/issues/5325#issuecomment-2242597732