* move libffi to base/ Category
[t2sde.git] / package / www / chromium / hotfix-rustc-t2.patch
blobeaf0486704645523fdc6ab5f0be22eea7d5d98df
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/chromium/hotfix-rustc-t2.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- chromium-131.0.6778.85/build/config/rust.gni.vanilla 2024-11-29 22:39:21.663333310 +0100
15 +++ chromium-131.0.6778.85/build/config/rust.gni 2024-11-29 22:40:53.306666632 +0100
16 @@ -198,13 +198,13 @@
17 rust_abi_target = ""
18 if (is_linux || is_chromeos) {
19 if (current_cpu == "arm64") {
20 - rust_abi_target = "aarch64-unknown-linux-gnu"
21 + rust_abi_target = "aarch64-t2-linux-gnu"
22 cargo_target_abi = ""
23 } else if (current_cpu == "x86") {
24 - rust_abi_target = "i686-unknown-linux-gnu"
25 + rust_abi_target = "i686-t2-linux-gnu"
26 cargo_target_abi = ""
27 } else if (current_cpu == "x64") {
28 - rust_abi_target = "x86_64-unknown-linux-gnu"
29 + rust_abi_target = "x86_64-t2-linux-gnu"
30 cargo_target_abi = ""
31 } else if (current_cpu == "arm") {
32 if (arm_float_abi == "hard") {
33 @@ -214,18 +214,18 @@
35 if (arm_arch == "armv7-a" || arm_arch == "armv7") {
36 # No way to inform Rust about the -a suffix.
37 - rust_abi_target = "armv7-unknown-linux-gnueabi" + float_suffix
38 + rust_abi_target = "armv7-t2-linux-gnueabi" + float_suffix
39 cargo_target_abi = "eabi" + float_suffix
40 } else {
41 - rust_abi_target = "arm-unknown-linux-gnueabi" + float_suffix
42 + rust_abi_target = "arm-t2-linux-gnueabi" + float_suffix
43 cargo_target_abi = "eabi" + float_suffix
45 } else if (current_cpu == "riscv64") {
46 - rust_abi_target = "riscv64gc-unknown-linux-gnu"
47 + rust_abi_target = "riscv64gc-t2-linux-gnu"
48 cargo_target_abi = ""
49 } else {
50 # Best guess for other future platforms.
51 - rust_abi_target = current_cpu + "-unknown-linux-gnu"
52 + rust_abi_target = current_cpu + "-t2-linux-gnu"
53 cargo_target_abi = ""
55 } else if (is_android) {