From 45c72b4a2a1a2d02558442a24ccbc3d37ec44a75 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 1 Mar 2022 00:02:00 +0800 Subject: fix autoconf --- xmake/modules/package/tools/autoconf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index ed5157f8a..5b33d64b0 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -103,7 +103,7 @@ function _get_configs(package, configs) x86_64 = "x86_64-w64-mingw32" } table.insert(configs, "--host=" .. (triples[package:arch()] or triples.i386)) - elseif package:is_plat("cross") then + elseif package:is_plat("cross") and package:targetos() then local host = package:arch() if package:is_arch("arm64") then host = "aarch64" -- cgit v1.3.1