diff options
| -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 |
