Fixing a HIP bug that causes DEBUG symbols to be dropped.

I've noticed that in the generated makefiles, we'd have 

if(NOT build_configuration)
    set(build_configuration Debug)
endif()

However, only definitions with all capitals are provided. 

e.g.

set(HIP_HCC_FLAGS_DEBUG -g)

This is because of lines 442 to 448. We capitalize the configuration ${config_upper}.

This PR fixes this bug.

[ROCm/hip commit: 865b015410]
このコミットが含まれているのは:
Jorghi12
2018-07-23 18:16:00 -04:00
committed by GitHub
コミット 54bf67ff22
+1 -1
ファイルの表示
@@ -380,7 +380,7 @@ endmacro()
###############################################################################
macro(HIP_PREPARE_TARGET_COMMANDS _target _format _generated_files _source_files)
set(_hip_flags "")
set(_hip_build_configuration "${CMAKE_BUILD_TYPE}")
string(TOUPPER _hip_build_configuration "${CMAKE_BUILD_TYPE}")
if(HIP_HOST_COMPILATION_CPP)
set(HIP_C_OR_CXX CXX)
else()