From c4aca7fbbacf179b1f9d26048e84f76213c255fc Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Apr 2026 23:09:55 +0800 Subject: fix package installdir --- xmake/modules/package/tools/xmake.lua | 4 ++-- 1 file 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 -- cgit v1.3.1