aboutsummaryrefslogtreecommitdiff
blob: 51d7056e9fc2742a0cebb64cd298d406527bef43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/build/config/rust.gni b/build/config/rust.gni
index 9b0ee754ba5e2..9e6d6ba5acb0b 100644
--- a/build/config/rust.gni
+++ b/build/config/rust.gni
@@ -214,6 +214,8 @@ if (is_linux || is_chromeos) {
     } else {
       rust_abi_target = "arm-unknown-linux-gnueabi" + float_suffix
     }
+  } else if (current_cpu == "riscv64") {
+    rust_abi_target = "riscv64gc-unknown-linux-gnu"
   } else {
     # Best guess for other future platforms.
     rust_abi_target = current_cpu + "-unknown-linux-gnu"