8000 Add -fstandalone-debug for Clang Debug builds by goedderz · Pull Request #14439 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Add -fstandalone-debug for Clang Debug builds #14439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add -fstandalone-debug for Clang Debug builds
  • Loading branch information
goedderz committed Jul 1, 2021
commit 09bce3798e158a298af2b13e84ed5b5073a71bc9
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,13 @@ else () # NOT MSVC
set(CMAKE_CXX_FLAGS_RELEASE "${NODEBUGINFO_FLAGS} -O3 -fomit-frame-pointer" CACHE INTERNAL "C++ release flags")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${DEBUGINFO_FLAGS} -O3 -fno-omit-frame-pointer" CACHE INTERNAL "C++ release with debug info flags")

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# On Darwin -fstandalone-debug is enabled by default, so we don't need
# to add it for AppleClang.
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fstandalone-debug")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -fstandalone-debug")
endif ()

endif ()

# put together the final flags
Expand Down
0