Skip to content

Commit

Permalink
Cherry pick envoyproxy#37357
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake committed Nov 26, 2024
1 parent 92f8034 commit a5a9f91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/extensions/dynamic_modules/sdk/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ use std::env;
use std::path::PathBuf;

fn main() {
if std::fs::metadata("/opt/llvm/bin/clang").is_ok() {
env::set_var("CLANG_PATH", "/opt/llvm/bin/clang");
}

let bindings = bindgen::Builder::default()
.header("../../abi.h")
.header("../../abi_version.h")
Expand Down

0 comments on commit a5a9f91

Please sign in to comment.