diff options
| author | ruki <[email protected]> | 2025-05-09 20:34:49 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-09 20:34:49 +0800 |
| commit | 5046da0147f80e4548d7b30fd867d1388e6995ab (patch) | |
| tree | 3d5b7a2f8b16a937cd63a7dfe79404d250f5bf88 | |
| parent | accf9cdc27b899d8cbece2987408986c1e0d2378 (diff) | |
| parent | 594726479bfb7280589dd57a7bc732fddce23c3a (diff) | |
Merge pull request #6412 from SirLynix/patch-18
rust/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 |
