Skip to content
Snippets Groups Projects
Commit b805f553 authored by Brad King's avatar Brad King
Browse files

HIP: Fix default flags for Debug configuration

Pass `-g` to enable debugging, not `-O` for optimizations.  This was
probably a typo in commit b50bfc89 (HIP: Add language to CMake,
2020-08-28, v3.21.0-rc1~66^2~4).

Fixes: #26823
parent 9257afbf
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ set(_CMAKE_HIP_RDC_FLAG "-fgpu-rdc")
if(NOT "x${CMAKE_HIP_SIMULATE_ID}" STREQUAL "xMSVC")
set(CMAKE_HIP_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
string(APPEND CMAKE_HIP_FLAGS_DEBUG_INIT " -O")
string(APPEND CMAKE_HIP_FLAGS_DEBUG_INIT " -g")
endif()
set(CMAKE_HIP_RUNTIME_LIBRARY_DEFAULT "SHARED")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment