diff options
author | WANG Rui <wangrui@loongson.cn> | 2024-05-14 12:24:18 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-05-14 12:24:18 +0800 |
commit | 8f8d74ee110c02137f5b78ca0a2bd6c10331f267 (patch) | |
tree | bd054b235ed1282ee0b2ee9fc0da8240ad57bcde /scripts/generate_rust_target.rs | |
parent | d6af2c76399f98444a5b4de96baf4b362d9f102b (diff) | |
download | linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.tar.gz linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.tar.bz2 linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.zip |
LoongArch: rust: Switch to use built-in rustc target
This commit switches to use the LoongArch's built-in rustc target
'loongarch64-unknown-none-softfloat'. The Rust samples have been tested.
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/generate_rust_target.rs')
-rw-r--r-- | scripts/generate_rust_target.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/generate_rust_target.rs b/scripts/generate_rust_target.rs index 54919cf48621..acd3b1acef83 100644 --- a/scripts/generate_rust_target.rs +++ b/scripts/generate_rust_target.rs @@ -164,12 +164,7 @@ fn main() { 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"); + panic!("loongarch uses the builtin rustc loongarch64-unknown-none-softfloat target"); } else { panic!("Unsupported architecture"); } |