summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-17 19:27:11 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-17 19:40:06 +0200
commite01f7f642c941b7b647b4faf47497c0134306d2d (patch)
tree1549fe448f200cfa5a97cb89b7541da1ed6396f8
parentf252d479e7363baa857248b3fb9a7fb4e517deaf (diff)
downloadlibgit2-e01f7f642c941b7b647b4faf47497c0134306d2d.tar.gz
windows: Disable Runtime checks
Runtime checks are asserting on the embedded ZLib code because of truncation (see zlib/trees.c:218). This is not good or pretty, but I'm wary about patching the ZLib code even more. There are two ways to fix this: - Patch the ZLib code, and start storing a diff/patchset on how does our version of ZLib differ from the original one, so we can be more or less on sync when new version of ZLib. - Go back to ZLib as an external dependency, which is np for *NIX users but annoying as dicks for Windows users. THINK HARD
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72f6049f8..bbfd151a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,8 @@ OPTION (THREADSAFE "Build libgit2 as threadsafe" OFF)
# Platform specific compilation flags
IF (MSVC)
SET(CMAKE_C_FLAGS "/TC /W4 /WX /nologo /Zi")
- SET(CMAKE_C_FLAGS_DEBUG "/Od /RTC1 /RTCc /DEBUG /MTd")
+ # TODO: bring back /RTC1 /RTCc
+ SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd")
SET(CMAKE_C_FLAGS_RELEASE "/MT /O2")
ENDIF()