diff options
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 2 |
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" |
