File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ option(ENABLE_TESTS "Build MongoDB C Driver tests." ON)
14
14
option (ENABLE_EXAMPLES "Build MongoDB C Driver examples." ON )
15
15
option (ENABLE_AUTOMATIC_INIT_AND_CLEANUP "Enable automatic init and cleanup (GCC only)" ON )
16
16
option (ENABLE_CRYPTO_SYSTEM_PROFILE "Use system crypto profile (OpenSSL only)" OFF )
17
+ option (ENABLE_TRACING "Turn on verbose debug output" OFF )
17
18
18
19
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR} /build/cmake )
19
20
@@ -166,6 +167,10 @@ set (MONGOC_CC ${CMAKE_C_COMPILER})
166
167
set (MONGOC_USER_SET_CFLAGS ${CMAKE_C_FLAGS} )
167
168
set (MONGOC_USER_SET_LDFLAGS ${CMAKE_EXE_LINKER_FLAGS} )
168
169
170
+ if (ENABLE_TRACING )
171
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMONGOC_TRACE" )
172
+ endif ()
173
+
169
174
configure_file (
170
175
"${SOURCE_DIR} /src/mongoc/mongoc-config.h.in"
171
176
"${PROJECT_BINARY_DIR} /src/mongoc/mongoc-config.h"
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ New features and bug fixes:
35
35
exported symbols from the internal private ABI.
36
36
* mongoc no longer crashes when multi roundtrip bulk operation fails.
37
37
* Added support for the new readConcernLevel "linearizable".
38
+ * New CMake option ENABLE_TRACING allows debug output, which before had only
39
+ been available with "configure --enable-tracing".
38
40
39
41
Removed configure flags:
40
42
* --enable-experimental has been removed and all of its features
You can’t perform that action at this time.
0 commit comments