summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2021-11-03 14:26:11 (GMT)
committerMichael Hirsch <scivision@users.noreply.github.com>2021-11-03 14:27:36 (GMT)
commitc0f1c0fc085007780e6a451c0d5fce26ea28f499 (patch)
treebd7c1ebe1ce24a15195667ef7558e1cd810dd502 /CMakeLists.txt
parent0cd88287a4cd77d11c92c7a9b44bb15fb787a1ee (diff)
downloadNinja-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.txt4
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")