diff --git a/crates/samples/components/json_validator_winrt_client_cpp/build.rs b/crates/samples/components/json_validator_winrt_client_cpp/build.rs index f39067a2a5..6293927b07 100644 --- a/crates/samples/components/json_validator_winrt_client_cpp/build.rs +++ b/crates/samples/components/json_validator_winrt_client_cpp/build.rs @@ -18,6 +18,7 @@ fn main() { cc::Build::new() .cpp(true) .std("c++20") + .flag("/EHsc") .file("src/client.cpp") .compile("client"); }