Skip to content

Commit

Permalink
Set cpp for inline lib.
Browse files Browse the repository at this point in the history
Apparently this doesn't cause problems on MSVC, but it does on Clang/GCC.
  • Loading branch information
andriyDev committed May 1, 2023
1 parent b7f3c86 commit e3a713c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn build_and_link_inline_lib(
println!("cargo:rerun-if-changed=inline_lib_src");

let mut build = cc::Build::new();
build.file("inline_lib_src/inline.cc").includes(include_dirs);
build.cpp(true).file("inline_lib_src/inline.cc").includes(include_dirs);

if cfg!(feature = "recast") {
build.define("RECAST", None);
Expand Down

0 comments on commit e3a713c

Please sign in to comment.