Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Compile with -rdynamic for better debugging symbols. (ray-project#1123)
Browse files Browse the repository at this point in the history
* Compile with -rdynamic.

* Only use -rdynamic on Linux.

* Add comment.
  • Loading branch information
robertnishihara authored and pcmoritz committed Oct 14, 2017
1 parent 15486a1 commit d6062ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/cmake/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ include(CMakeParseArguments)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -Werror -Wall -Wno-error=unused-function -Wno-error=strict-aliasing")

# The rdynamic flag is needed to produce better backtraces on Linux.
if(UNIX AND NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic")
endif()

set(FLATBUFFERS_VERSION "1.7.1")

set(FLATBUFFERS_PREFIX "${CMAKE_BINARY_DIR}/flatbuffers_ep-prefix/src/flatbuffers_ep-install")
Expand Down

0 comments on commit d6062ef

Please sign in to comment.