Skip to content

Commit

Permalink
build.rs: Don't override Windows exception/RTTI/C++ compiler flags.
Browse files Browse the repository at this point in the history
Use whatever cc-rs does by default. This shouldn't impact us as we
don't use C++.
  • Loading branch information
briansmith committed Oct 15, 2023
1 parent 2201721 commit 65941d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 65941d0

Please sign in to comment.