diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt --- a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt +++ b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt @@ -54,7 +54,7 @@ # Activate RTL message dumps if requested by the user. if(LIBOMPTARGET_NVPTX_DEBUG) - set(CUDA_DEBUG -DOMPTARGET_NVPTX_DEBUG=-1) + set(CUDA_DEBUG -DOMPTARGET_NVPTX_DEBUG=-1 -g) endif() get_filename_component(devicertl_base_directory diff --git a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt --- a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt +++ b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt @@ -164,7 +164,7 @@ -I${devicertl_nvptx_directory}/src) if(${LIBOMPTARGET_NVPTX_DEBUG}) - list(APPEND bc_flags -DOMPTARGET_NVPTX_DEBUG=-1) + list(APPEND bc_flags -DOMPTARGET_NVPTX_DEBUG=-1 -g) else() list(APPEND bc_flags -DOMPTARGET_NVPTX_DEBUG=0) endif()