mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 22:21:42 +02:00
LoongArch: Enable initial Rust support
Enable initial Rust support for LoongArch. Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: WANG Rui <wangrui@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
parent
f58b0abae8
commit
90868ff9ca
4 changed files with 18 additions and 6 deletions
|
@ -161,6 +161,13 @@ fn main() {
|
|||
ts.push("features", features);
|
||||
ts.push("llvm-target", "x86_64-linux-gnu");
|
||||
ts.push("target-pointer-width", "64");
|
||||
} else if cfg.has("LOONGARCH") {
|
||||
ts.push("arch", "loongarch64");
|
||||
ts.push("data-layout", "e-m:e-p:64:64-i64:64-i128:128-n64-S128");
|
||||
ts.push("features", "-f,-d");
|
||||
ts.push("llvm-target", "loongarch64-linux-gnusf");
|
||||
ts.push("llvm-abiname", "lp64s");
|
||||
ts.push("target-pointer-width", "64");
|
||||
} else {
|
||||
panic!("Unsupported architecture");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue