Skip to content

Commit a5f36b2

Browse files
committed
Prepare CMakeLists.txt for using mutrace (Linux only)
1 parent 1e461af commit a5f36b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,13 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${JAVA_CC_EXTRA_FLAGS}")
177177
if(POLICY CMP0063)
178178
cmake_policy(SET CMP0063 NEW)
179179
endif()
180+
181+
# when using mutrace comment the next 3 lines and uncomment the last 2
180182
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
181183
set(CMAKE_C_VISIBILITY_PRESET hidden)
182184
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
185+
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic")
186+
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -rdynamic")
183187

184188
if (CMAKE_GENERATOR MATCHES "Ninja")
185189
set(LEX_FLAGS )

0 commit comments

Comments
 (0)