Skip to content

Commit

Permalink
bugfix: link the directory so that GDB is able to read the relevant s…
Browse files Browse the repository at this point in the history
…ource code
  • Loading branch information
nikp123 committed Jul 12, 2024
1 parent 7572aed commit f725ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmake/os-prerequisites.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ else()
# See: https://stackoverflow.com/a/16658858
#
# Needed for achieving purity in a nix build
add_compile_options(-ffile-prefix-map=${CMAKE_SOURCE_DIR}/=/)
#
# Assume we're running this from the ./build directory
# so that GDB picks up our source files when debugging
add_compile_options(-ffile-prefix-map=${CMAKE_SOURCE_DIR}/=../)

if(GNU)
set(BUILD_DEBUG_FLAGS "-rdynamic")
Expand Down

0 comments on commit f725ca5

Please sign in to comment.