From a89b80776908ba33319cc0b1d6ad4f23e452a2b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=B6=98=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 1 Apr 2019 19:22:25 +0900 Subject: [PATCH] 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 --- cmake/buildtool/config/config_linux.cmake | 2 ++ 1 file changed, 2 insertions(+) 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() # -- 2.7.4