From 7fd07ddd98015081a4cd1bf4f1fa7e67617bc5fe Mon Sep 17 00:00:00 2001 From: Maxim Raznatovski Date: Tue, 11 Jun 2024 15:51:36 +0200 Subject: [PATCH] fix(occara): pass correct c++ std version for the include_cpp macro While the code was compiled with the correct c++ version, the 'autocxx::include_cpp' macro still ran with c++14. This fixes building on windows. --- crates/occara/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/occara/build.rs b/crates/occara/build.rs index 76319ec8..edeec586 100644 --- a/crates/occara/build.rs +++ b/crates/occara/build.rs @@ -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