summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-02 22:07:40 +0800
committerruki <[email protected]>2026-04-02 22:07:40 +0800
commit7b9ad034be9e65c704f7addd66c394a273104b7a (patch)
tree185894b192fef075f675276f2a5d186bf3984f94
parent9d6f7535bc7991216c5005414f6e26aa8639599c (diff)
fix sourcelocal
-rw-r--r--xmake/modules/package/tools/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index c2f6133d1..f5bc81343 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -529,7 +529,7 @@ function install(package, configs, opt)
-- to the child xmake process so it can find already-installed deps
-- without re-installing them to the global directory
-- @see https://github.com/xmake-io/xmake/discussions/7441
- if package:is_local() then
+ if package:is_local() and not package:is_source_embed() then
envs = table.clone(envs)
envs.XMAKE_PKG_INSTALLDIR = package.installdir({localdir = true})
end