From 64cc2337bc38b4654480a9c0adabaf67e9f6817f Mon Sep 17 00:00:00 2001 From: zhaixiaojuan Date: Mon, 11 Apr 2022 10:39:02 +0800 Subject: [PATCH] Add loongarch64 support --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e18f1b3..b8037d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1082,6 +1082,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option)> { ("wasm32", "32", "little") } else if target.starts_with("riscv64gc") { ("riscv64", "64", "little") + } else if target.starts_with("loongarch64") { + ("loongarch64", "64", "little") } else { panic!("unknown arch/pointer width: {}", target) };