diff --git a/build/rust/rust_bindgen.gni b/build/rust/rust_bindgen.gni index bf110ca93c..654ddf5f0b 100644 --- a/build/rust/rust_bindgen.gni +++ b/build/rust/rust_bindgen.gni @@ -152,6 +152,8 @@ template("rust_bindgen") { clang_resource_dir, ] + args += [ "-I" + rebase_path(sysroot + "/usr/lib/clang/17/include/", root_build_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 # the headers in the sysroot which are otherwise not found.