summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-01 00:02:00 +0800
committerruki <[email protected]>2022-03-01 00:02:00 +0800
commit45c72b4a2a1a2d02558442a24ccbc3d37ec44a75 (patch)
tree9bee821e58d6655c4e5a1814eefb5a99ef83e2ea /xmake/modules/package/tools/autoconf.lua
parenta47489c4397756b21d99f2510e686716c97e61c6 (diff)
fix autoconf
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua2
1 files changed, 1 insertions, 1 deletions
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"