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:
parent
2201721cd3
commit
65941d014f
3
build.rs
3
build.rs
@ -139,12 +139,9 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] {
|
|||||||
} else {
|
} else {
|
||||||
static MSVC_FLAGS: &[&str] = &[
|
static MSVC_FLAGS: &[&str] = &[
|
||||||
"/Gy", // Enable function-level linking.
|
"/Gy", // Enable function-level linking.
|
||||||
"/EHsc", // C++ exceptions only, only in C++.
|
|
||||||
"/GR-", // Disable RTTI.
|
|
||||||
"/Zc:wchar_t",
|
"/Zc:wchar_t",
|
||||||
"/Zc:forScope",
|
"/Zc:forScope",
|
||||||
"/Zc:inline",
|
"/Zc:inline",
|
||||||
"/Zc:rvalueCast",
|
|
||||||
// Warnings.
|
// Warnings.
|
||||||
"/sdl",
|
"/sdl",
|
||||||
"/Wall",
|
"/Wall",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user