Skip to content

Commit

Permalink
fix(occara): correctly specify the c++ std version (#9)
Browse files Browse the repository at this point in the history
This fixes compilation of modern features like nested namespace
definitions when compiling on windows.
  • Loading branch information
maximmaxim345 authored May 23, 2024
1 parent 39d0f4c commit 76ecf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/occara/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() -> miette::Result<()> {
.build()?;

autocxx_build
.flag_if_supported("-std=c++20")
.std("c++20")
.files(files)
.compile("occara-autocxx-bridge");
println!("cargo:rerun-if-changed=src/ffi.rs");
Expand Down

0 comments on commit 76ecf0d

Please sign in to comment.