Skip to content

Commit

Permalink
build.rs: Remove C++-specific MSVC flags.
Browse files Browse the repository at this point in the history
There is no C++ code in *ring*.
  • Loading branch information
briansmith committed May 13, 2021
1 parent 2881342 commit 959445f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,9 @@ fn cpp_flags(target: &Target) -> &'static [&'static str] {
NON_MSVC_FLAGS
} else {
static MSVC_FLAGS: &[&str] = &[
"/GS", // Buffer security checks.
"/Gy", // Enable function-level linking.
"/EHsc", // C++ exceptions only, only in C++.
"/GR-", // Disable RTTI.
"/Zc:wchar_t",
"/Zc:forScope",
"/GS", // Buffer security checks.
"/Gy", // Enable function-level linking.
"/Zc:inline",
"/Zc:rvalueCast",
// Warnings.
"/wd4127", // C4127: conditional expression is constant
"/wd4464", // C4464: relative include path contains '..'
Expand Down

0 comments on commit 959445f

Please sign in to comment.