diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2021-11-03 14:26:11 (GMT) |
---|---|---|
committer | Michael Hirsch <scivision@users.noreply.github.com> | 2021-11-03 14:27:36 (GMT) |
commit | c0f1c0fc085007780e6a451c0d5fce26ea28f499 (patch) | |
tree | bd7c1ebe1ce24a15195667ef7558e1cd810dd502 /CMakeLists.txt | |
parent | 0cd88287a4cd77d11c92c7a9b44bb15fb787a1ee (diff) | |
download | Ninja-c0f1c0fc085007780e6a451c0d5fce26ea28f499.zip Ninja-c0f1c0fc085007780e6a451c0d5fce26ea28f499.tar.gz Ninja-c0f1c0fc085007780e6a451c0d5fce26ea28f499.tar.bz2 |
minidump-win32 is needed by native GNU-like Clang on Windows
The entire minidump-win32.cc is guarded by ifdef _MSC_VER, so
MSYS2/MinGW will just ignore the contents.
fixes #2006
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b49c5b0..fe1e03f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,10 +122,8 @@ if(WIN32) src/msvc_helper-win32.cc src/msvc_helper_main-win32.cc src/getopt.c + src/minidump-win32.cc ) - if(MSVC) - target_sources(libninja PRIVATE src/minidump-win32.cc) - endif() else() target_sources(libninja PRIVATE src/subprocess-posix.cc) if(CMAKE_SYSTEM_NAME STREQUAL "OS400" OR CMAKE_SYSTEM_NAME STREQUAL "AIX") |