summaryrefslogtreecommitdiff
path: root/chromium-127-rust-clanglib.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-11 07:17:39 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-11 07:17:39 +0000
commit644c757ffb94ff2f452976228fee9bbdfba762fa (patch)
tree205f3dbf342b9ae0c59e71ddbc9394b2dd415951 /chromium-127-rust-clanglib.patch
parente9abc6c72d6b470c59f4c9e9b5af6dfe5d1a75b2 (diff)
automatic import of chromium
Diffstat (limited to 'chromium-127-rust-clanglib.patch')
-rw-r--r--chromium-127-rust-clanglib.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch
new file mode 100644
index 0000000..e06bb20
--- /dev/null
+++ b/chromium-127-rust-clanglib.patch
@@ -0,0 +1,22 @@
+diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni
+--- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me 2024-07-25 16:11:18.754551595 +0200
++++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni 2024-07-25 16:11:33.997837660 +0200
+@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root
+ if (host_os == "win") {
+ _libclang_path += "/bin"
+ } else {
+- _libclang_path += "/lib"
++ _libclang_path += "/lib64"
+ }
+
+ # Template to build Rust/C bindings with bindgen.
+@@ -195,6 +195,8 @@
+ # causes bindgen not to emit function bindings. Override it.
+ if (!is_win) {
+ args += [ "-fvisibility=default" ]
++ args += [ "-I/usr/include/c++/v1" ]
++ args += [ "-I/usr/lib64/clang/" + clang_version + "/include" ]
+ }
+
+ if (is_win) {
+