Skip to content

Commit d1901a3

Browse files
author
Alan Jeffrey
committed
Pass CXXFLAGS to bindgen
1 parent 7ea89d9 commit d1901a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ fn build_jsapi_bindings() {
159159
builder = builder.clang_arg("-fms-compatibility");
160160
}
161161

162+
if let Ok(flags) = env::var("CXXFLAGS") {
163+
for flag in flags.split_whitespace() {
164+
builder = builder.clang_arg(flag);
165+
}
166+
}
167+
162168
for flag in cc_flags() {
163169
builder = builder.clang_arg(flag);
164170
}

0 commit comments

Comments
 (0)