From: 이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 1 Apr 2019 10:22:25 +0000 (+0900) Subject: Fix coverage build fail on gbs (#4912) X-Git-Tag: accepted/tizen/unified/20190430.113441~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a89b80776908ba33319cc0b1d6ad4f23e452a2b1;p=platform%2Fcore%2Fml%2Fnnfw.git Fix coverage build fail on gbs (#4912) On gbs, CMAKE_C_FLAGS_DEBUG seems to apply -O0 flag on coverage build. This patch cancels -O0 flag in the case of coverage build. Note that arm-ubuntu build does not show this kinds of error. Signed-off-by: Chunseok Lee --- diff --git a/cmake/buildtool/config/config_linux.cmake b/cmake/buildtool/config/config_linux.cmake index 61909a7..a17bbb2 100644 --- a/cmake/buildtool/config/config_linux.cmake +++ b/cmake/buildtool/config/config_linux.cmake @@ -8,6 +8,8 @@ if("${COVERAGE_BUILD}" STREQUAL "1") set(FLAGS_COMMON "${FLAGS_COMMON} -fprofile-arcs -ftest-coverage") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") + set(CMAKE_C_FLAGS_DEBUG "-O -g -DDEBUG") + set(CMAKE_CXX_FLAGS_DEBUG "-O -g -DDEBUG") endif() #