diff options
| author | ruki <[email protected]> | 2022-09-17 00:32:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-17 00:32:58 +0800 |
| commit | 758b77ba64701c8206d196c9396e436133e6b8de (patch) | |
| tree | 262858eac75b4fc97f11c7443b252dc11c5d259f /xmake/modules | |
| parent | a54bcd6f17133be87732cbaf5f5dfd092757c54a (diff) | |
add cross for trybuild/autotools
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/trybuild/autotools.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/modules/private/action/trybuild/autotools.lua b/xmake/modules/private/action/trybuild/autotools.lua index 11f455c62..a2c1987c6 100644 --- a/xmake/modules/private/action/trybuild/autotools.lua +++ b/xmake/modules/private/action/trybuild/autotools.lua @@ -193,6 +193,15 @@ function _get_configs(artifacts_dir) x86_64 = "x86_64-w64-mingw32" } table.insert(configs, "--host=" .. (triples[config.arch()] or triples.i386)) + elseif is_plat("cross") then + local host = config.arch() + if is_arch("arm64") then + host = "aarch64" + elseif is_arch("arm.*") then + host = "arm" + end + host = host .. "-" .. (get_config("target_os") or "linux") + table.insert(configs, "--host=" .. host) else raise("autotools: unknown platform(%s)!", config.plat()) end |
