[llvm] r290357 - Build KillTheDoctor with mingw-w64
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 22 11:11:43 PST 2016
Author: rnk
Date: Thu Dec 22 13:11:42 2016
New Revision: 290357
URL: http://llvm.org/viewvc/llvm-project?rev=290357&view=rev
Log:
Build KillTheDoctor with mingw-w64
compiler-rt uses it in its lit tests.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/utils/KillTheDoctor/KillTheDoctor.cpp
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=290357&r1=290356&r2=290357&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Thu Dec 22 13:11:42 2016
@@ -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)
Modified: llvm/trunk/utils/KillTheDoctor/KillTheDoctor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/KillTheDoctor/KillTheDoctor.cpp?rev=290357&r1=290356&r2=290357&view=diff
==============================================================================
--- llvm/trunk/utils/KillTheDoctor/KillTheDoctor.cpp (original)
+++ llvm/trunk/utils/KillTheDoctor/KillTheDoctor.cpp Thu Dec 22 13:11:42 2016
@@ -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,
More information about the llvm-commits
mailing list