Skip to content

Commit

Permalink
fix(occara): pass correct c++ std version for the include_cpp macro (#12
Browse files Browse the repository at this point in the history
)

While the bindings were compiled with the correct c++ version, the
'autocxx::include_cpp' macro still ran with c++14.
  • Loading branch information
maximmaxim345 authored Jun 27, 2024
2 parents f7b7458 + 7fd07dd commit 7282073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/occara/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fn main() -> miette::Result<()> {
"src/ffi.rs",
[&std::path::PathBuf::from("include"), build.include_dir()],
)
.extra_clang_args(&["-std=c++20"])
.build()?;

autocxx_build
Expand Down

0 comments on commit 7282073

Please sign in to comment.