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) };