summaryrefslogtreecommitdiff
path: root/riscv-build.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-09-25 09:55:25 +0000
committerCoprDistGit <infra@openeuler.org>2024-09-25 09:55:25 +0000
commit8fe37c454512853c40108c2c0d19c2d39d15af19 (patch)
treeaefee73b38da5be91c6d7b3a2e1ba13848f41938 /riscv-build.patch
parent0dc651d979e28d3c6b3e380b056741946893de1d (diff)
automatic import of chromiumopeneuler20.03
Diffstat (limited to 'riscv-build.patch')
-rw-r--r--riscv-build.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/riscv-build.patch b/riscv-build.patch
new file mode 100644
index 0000000..2139861
--- /dev/null
+++ b/riscv-build.patch
@@ -0,0 +1,13 @@
+Index: chromium-122.0.6261.111/build/config/rust.gni
+===================================================================
+--- chromium-122.0.6261.111.orig/build/config/rust.gni
++++ chromium-122.0.6261.111/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"