Skip to content

Commit

Permalink
hacks fr
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Jun 27, 2024
1 parent 387bca0 commit f65963b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ fn build_binding() {
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.clang_args(["-x", "c++", "-std=c++20", "-Iv8/include"])
.clang_args(args)
.clang_arg("-D_HAS_NODISCARD=1") // fix vcruntime.h definition on windows
.allowlist_item("RUST_.*")
.generate()
.expect("Unable to generate bindings");
Expand Down

0 comments on commit f65963b

Please sign in to comment.