Skip to content

Commit 8fafb4c

Browse files
committed
Strip out sysroot flag when running bindgen to avoid include path deprioritization.
1 parent 7231044 commit 8fafb4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ fn build_jsapi_bindings() {
169169

170170
if let Ok(flags) = env::var("CXXFLAGS") {
171171
for flag in flags.split_whitespace() {
172-
builder = builder.clang_arg(flag);
172+
if !flag.starts_with("--sysroot") {
173+
builder = builder.clang_arg(flag);
174+
}
173175
}
174176
}
175177

0 commit comments

Comments
 (0)