From 7b9ad034be9e65c704f7addd66c394a273104b7a Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Apr 2026 22:07:40 +0800 Subject: fix sourcelocal --- xmake/modules/package/tools/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1