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.
Tá an tiomantas seo le fáil i:
Jorghi12 údaraithe agus GitHub tiomanta 2018-07-23 18:16:00 -04:00
1 tuismitheoir a5afadec7e
tiomantas 25c780c89e
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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()