Skip to content

Commit

Permalink
build: Fix compilation with MSVC (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman authored and jan-auer committed Oct 1, 2019
1 parent 723fb7f commit 48926c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demangle/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
// "vendor/swift/lib/Demangling/Remangler.cpp",
// "vendor/swift/lib/Demangling/TypeDecoder.cpp",
])
.flag("-std=c++11")
.flag_if_supported("-std=c++11")
.flag("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1")
.warnings(false)
.include("vendor/swift/include")
Expand Down
4 changes: 2 additions & 2 deletions minidump/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {

cc::Build::new()
.warnings(false)
.flag("-Wno-tautological-constant-out-of-range-compare")
.flag_if_supported("-Wno-tautological-constant-out-of-range-compare")
.file("third_party/breakpad/src/third_party/libdisasm/ia32_implicit.c")
.file("third_party/breakpad/src/third_party/libdisasm/ia32_insn.c")
.file("third_party/breakpad/src/third_party/libdisasm/ia32_invariant.c")
Expand All @@ -35,7 +35,7 @@ fn main() {
cc::Build::new()
.cpp(true)
.warnings(false)
.flag("-std=c++11")
.flag_if_supported("-std=c++11")
.include(".")
.include("third_party/breakpad/src")
.define("BPLOG_MINIMUM_SEVERITY", "SEVERITY_ERROR")
Expand Down

0 comments on commit 48926c4

Please sign in to comment.