build.rs: Don't override Windows exception/RTTI/C++ compiler flags.

Use whatever cc-rs does by default. This shouldn't impact us as we
don't use C++.
This commit is contained in:
Brian Smith 2023-10-14 20:59:09 -07:00
parent 2201721cd3
commit 65941d014f

View File

@ -138,13 +138,10 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] {
NON_MSVC_FLAGS
} else {
static MSVC_FLAGS: &[&str] = &[
"/Gy", // Enable function-level linking.
"/EHsc", // C++ exceptions only, only in C++.
"/GR-", // Disable RTTI.
"/Gy", // Enable function-level linking.
"/Zc:wchar_t",
"/Zc:forScope",
"/Zc:inline",
"/Zc:rvalueCast",
// Warnings.
"/sdl",
"/Wall",