diff options
| author | Jérôme Leclercq <[email protected]> | 2025-05-09 11:55:48 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-09 11:55:48 +0200 |
| commit | 594726479bfb7280589dd57a7bc732fddce23c3a (patch) | |
| tree | 3d5b7a2f8b16a937cd63a7dfe79404d250f5bf88 | |
| parent | accf9cdc27b899d8cbece2987408986c1e0d2378 (diff) | |
target_triple: handle arm and unknown arch
| -rw-r--r-- | xmake/modules/private/tools/rust/target_triple.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/tools/rust/target_triple.lua b/xmake/modules/private/tools/rust/target_triple.lua index 42b358a86..3a83aed7e 100644 --- a/xmake/modules/private/tools/rust/target_triple.lua +++ b/xmake/modules/private/tools/rust/target_triple.lua @@ -23,6 +23,7 @@ function _translate_arch(arch, opt) local maps = { ["aarch64"] = "aarch64" + , ["arm"] = "arm" , ["armv5te"] = "arm" , ["armeabi"] = "arm" , ["armeabi-v7a"] = "armv7" @@ -37,7 +38,7 @@ function _translate_arch(arch, opt) , ["wasm32"] = "wasm32" , ["wasm64"] = "wasm64" } - return maps[arch] + return maps[arch] or arch end -- get platform part |
