summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-12-22 19:11:42 +0000
committerReid Kleckner <rnk@google.com>2016-12-22 19:11:42 +0000
commit1d481d5a86fc60cb362f187ab618e2d11d40be2b (patch)
tree5ebc8bfaf0962dc1029fd82067052eeb21c95b38
parent2272dc886cc27388d06f256db084b891c1f0cbfd (diff)
Build KillTheDoctor with mingw-w64
compiler-rt uses it in its lit tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290357 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--CMakeLists.txt2
-rw-r--r--utils/KillTheDoctor/KillTheDoctor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f209338e2c1..64b33f27757 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -878,7 +878,7 @@ if( LLVM_INCLUDE_TESTS )
endif()
add_subdirectory(test)
add_subdirectory(unittests)
- if (MSVC)
+ if (WIN32)
# This utility is used to prevent crashing tests from calling Dr. Watson on
# Windows.
add_subdirectory(utils/KillTheDoctor)
diff --git a/utils/KillTheDoctor/KillTheDoctor.cpp b/utils/KillTheDoctor/KillTheDoctor.cpp
index c9e96617f37..b3ec134dbe6 100644
--- a/utils/KillTheDoctor/KillTheDoctor.cpp
+++ b/utils/KillTheDoctor/KillTheDoctor.cpp
@@ -349,7 +349,7 @@ int main(int argc, char **argv) {
::_set_error_mode(_OUT_TO_STDERR);
BOOL success = ::CreateProcessA(ProgramToRun.c_str(),
- LPSTR(CommandLine.c_str()),
+ const_cast<LPSTR>(CommandLine.c_str()),
NULL,
NULL,
FALSE,