From 871d920324f2e4d45c12a9938c20e2ea6b407857 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 5 Feb 2026 23:20:13 +0800 Subject: fix package toolchain --- xmake/modules/private/action/require/impl/package.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/modules/private/action/require/impl/package.lua') 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 -- cgit v1.3.1