-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathchromium-132-system-toolchain.patch
27 lines (26 loc) · 1.25 KB
/
chromium-132-system-toolchain.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -up chromium-132.0.6834.83/build/rust/rust_bindgen_generator.gni.omv~ chromium-132.0.6834.83/build/rust/rust_bindgen_generator.gni
--- chromium-132.0.6834.83/build/rust/rust_bindgen_generator.gni.omv~ 2025-01-14 01:00:23.345542892 +0100
+++ chromium-132.0.6834.83/build/rust/rust_bindgen_generator.gni 2025-01-14 01:01:10.291379357 +0100
@@ -215,13 +215,16 @@ template("rust_bindgen_generator") {
# says the wrong thing. We point it to our clang's resource dir which will
# make it behave consistently with our other command line flags and allows
# system headers to be found.
- clang_resource_dir =
- rebase_path(clang_base_path + "/lib/clang/" + clang_version,
- root_build_dir)
- args += [
- "-resource-dir",
- clang_resource_dir,
- ]
+ #
+ # In OM, we want to use system headers - and the location
+ # of files should be in lib64...
+ clang_resource_dir =
+ rebase_path(clang_base_path + "/lib64/clang/" + clang_version,
+ root_build_dir)
+ args += [
+ "-resource-dir",
+ clang_resource_dir,
+ ]
# The `--sysroot` flag is not working as expected and gets ignored (we don't
# fully understand why, see b/328510249). But we add `-isystem` to point at