Skip to content

Commit

Permalink
Switched Bindgen to Use BINDGEN_CXXFLAGS Environment Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Redfire75369 committed Dec 6, 2023
1 parent 655655e commit 4384ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozjs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ fn build_jsapi_bindings(build_dir: &Path) {
builder = builder.clang_arg("-fms-compatibility");
}

if let Ok(flags) = env::var("CXXFLAGS") {
if let Ok(flags) = env::var("BINDGEN_CXXFLAGS") {
for flag in flags.split_whitespace() {
builder = builder.clang_arg(flag);
}
Expand Down

0 comments on commit 4384ac8

Please sign in to comment.