diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-07-06 23:51:40 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-07-06 23:51:40 +0000 |
| commit | 00409fbe19bd7c21a7643235222c8d2b1b11edc6 (patch) | |
| tree | f008f272600558e81de8c463e2c192423b022efc /llvm | |
| parent | 98424c4460ea0bd1f0b530d0271f28315dcc84bb (diff) | |
| download | bcm5719-llvm-00409fbe19bd7c21a7643235222c8d2b1b11edc6.tar.gz bcm5719-llvm-00409fbe19bd7c21a7643235222c8d2b1b11edc6.zip | |
Make UnitTestMain/TestMain.cpp free from llvm/Config/config.h.
llvm/Config/config.h is unavailable outside of build tree.
llvm-svn: 241523
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/TestMain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/unittest/UnitTestMain/TestMain.cpp b/llvm/utils/unittest/UnitTestMain/TestMain.cpp index f5b09a5cf67..fb2b0f16ee3 100644 --- a/llvm/utils/unittest/UnitTestMain/TestMain.cpp +++ b/llvm/utils/unittest/UnitTestMain/TestMain.cpp @@ -7,13 +7,12 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Config/config.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Signals.h" #include "gtest/gtest.h" -#if defined(LLVM_ON_WIN32) +#if defined(_WIN32) # include <windows.h> # if defined(_MSC_VER) # include <crtdbg.h> @@ -30,7 +29,7 @@ int main(int argc, char **argv) { // Make it easy for a test to re-execute itself by saving argv[0]. TestMainArgv0 = argv[0]; -# if defined(LLVM_ON_WIN32) +# if defined(_WIN32) // Disable all of the possible ways Windows conspires to make automated // testing impossible. ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); |

