1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

Build KillTheDoctor with mingw-w64

compiler-rt uses it in its lit tests.

llvm-svn: 290357
This commit is contained in:
Reid Kleckner 2016-12-22 19:11:42 +00:00
parent 8d7cd1c8ba
commit 786cc439a4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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,