diff --git a/native/cpp/CommonCpp/grpc/grpc_client/build.rs b/native/cpp/CommonCpp/grpc/grpc_client/build.rs --- a/native/cpp/CommonCpp/grpc/grpc_client/build.rs +++ b/native/cpp/CommonCpp/grpc/grpc_client/build.rs @@ -1,6 +1,6 @@ fn main() { tonic_build::compile_protos("../protos/identity.proto") .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); - let _cxx_build = cxx_build::bridge("src/lib.rs"); + let _cxx_build = cxx_build::bridge("src/lib.rs").flag("-std=c++11"); println!("cargo:rerun-if-changed=src/hello.c"); }