summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-05 15:14:15 +0800
committerGitHub <[email protected]>2026-02-05 15:14:15 +0800
commitbe074db5aa346a36529c13e8b58db3600a6f1f32 (patch)
treecc3c2d40f20d1948bbbce0cc795510ce8766f7a0 /xmake/modules/private/action/require/impl/package.lua
parent1217203dfa19c618b1b3da096fd3eb420f38d071 (diff)
parent871d920324f2e4d45c12a9938c20e2ea6b407857 (diff)
Merge pull request #7294 from xmake-io/toolchain
fix package toolchain
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index ebd6e34d3..7cd26e55f 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -866,7 +866,8 @@ function _select_package_runtimes(package)
local runtimes = package:config("runtimes")
if runtimes then
local runtimes_supported = hashset.new()
- local toolchains = package:toolchains() or platform.load(package:plat(), package:arch()):toolchains()
+ local toolchains = package:toolchains() or
+ platform.load(package:plat(), package:arch(), {host = package:is_host()}):toolchains()
if toolchains then
for _, toolchain_inst in ipairs(toolchains) do
if toolchain_inst:is_standalone() and toolchain_inst:get("runtimes") then