summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-02 23:09:55 +0800
committerruki <[email protected]>2026-04-02 23:09:55 +0800
commitc4aca7fbbacf179b1f9d26048e84f76213c255fc (patch)
tree706612f7c9e76e244eab33d7353b60f339fbcd52
parent7b9ad034be9e65c704f7addd66c394a273104b7a (diff)
fix package installdir
-rw-r--r--xmake/modules/package/tools/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index f5bc81343..ea0ce9d65 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -23,7 +23,7 @@ import("core.base.option")
import("core.base.global")
import("core.tool.toolchain")
import("core.project.project")
-import("core.package.package")
+import("core.package.package", {alias = "package_core"})
import("core.package.repository")
import("private.action.require.impl.package", {alias = "require_package"})
import("private.utils.toolchain", {alias = "toolchain_utils"})
@@ -531,7 +531,7 @@ function install(package, configs, opt)
-- @see https://github.com/xmake-io/xmake/discussions/7441
if package:is_local() and not package:is_source_embed() then
envs = table.clone(envs)
- envs.XMAKE_PKG_INSTALLDIR = package.installdir({localdir = true})
+ envs.XMAKE_PKG_INSTALLDIR = package_core.installdir({localdir = true})
end
-- pass local repositories