coverage flags changed

This commit is contained in:
scorrea
2020-06-24 18:35:50 +02:00
parent 8ed64a85cf
commit 5a75a62760
2 changed files with 7 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ build:
- rm -rf build
- mkdir -p build
- cd build
- cmake --coverage ../DRAMSys
- cmake ../DRAMSys
- make -j16
- find . -name "*.o" -type f -delete
- rm -rf ${CI_PROJECT_DIR}/coverage

View File

@@ -39,6 +39,11 @@ project(DRAMSys)
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ Version")
set(DCMAKE_SH "CMAKE_SH-NOTFOUND" CACHE STRING "Ignore sh.exe error on Windows")
SET(GCC_COVERAGE_COMPILE_FLAGS "-g -O0 -coverage -fprofile-arcs -ftest-coverage")
SET(GCC_COVERAGE_LINK_FLAGS "-coverage -lgcov")
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}" )
SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
# Add DRAMSysLibrary:
add_subdirectory(library)
@@ -54,3 +59,4 @@ add_subdirectory(simulator)
if(DEFINED ENV{GEM5})
add_subdirectory(gem5)
endif()