Skip to content

Commit 1d481d5

Browse files
committed
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
1 parent 2272dc8 commit 1d481d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ if( LLVM_INCLUDE_TESTS )
878878
endif()
879879
add_subdirectory(test)
880880
add_subdirectory(unittests)
881-
if (MSVC)
881+
if (WIN32)
882882
# This utility is used to prevent crashing tests from calling Dr. Watson on
883883
# Windows.
884884
add_subdirectory(utils/KillTheDoctor)

utils/KillTheDoctor/KillTheDoctor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ int main(int argc, char **argv) {
349349
::_set_error_mode(_OUT_TO_STDERR);
350350

351351
BOOL success = ::CreateProcessA(ProgramToRun.c_str(),
352-
LPSTR(CommandLine.c_str()),
352+
const_cast<LPSTR>(CommandLine.c_str()),
353353
NULL,
354354
NULL,
355355
FALSE,

0 commit comments

Comments
 (0)