Skip to content

Commit

Permalink
Enable line information in RelWithDebInfo
Browse files Browse the repository at this point in the history
This allows us to get line information in profilers without having to
disable optimizations in the code.
  • Loading branch information
stephenswat committed Dec 8, 2024
1 parent 033b4fc commit b9e3284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/detray-compiler-options-cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ endif()
# Make CUDA generate debug symbols for the device code as well in a debug
# build.
detray_add_flag( CMAKE_CUDA_FLAGS_DEBUG "-G -src-in-ptx" )
detray_add_flag( CMAKE_CUDA_FLAGS_RELWITHDEBINFO "-lineinfo -src-in-ptx" )

# Fail on warnings, if asked for that behaviour.
if(DETRAY_FAIL_ON_WARNINGS)
Expand Down

0 comments on commit b9e3284

Please sign in to comment.