##// END OF EJS Templates
Switched to O3 with no inlining optim level for debug builds...
Switched to O3 with no inlining optim level for debug builds Debug builds are mostly used for gcov while it seems a bad idea(-O3), with O0 the FSW uses more than 100% CPU in normal mode so the treadoff is to switch to O3 without inlining, this preserves the 1 to 1 relation between code and gcov counters.

File last commit:

r387:96eb9489ec21 No PWD scrub with...
r397:0c445dc7a949 R3++
Show More
CMakeLists.txt
17 lines | 522 B | text/plain | CMakeLexer
cmake_minimum_required(VERSION 3.6)
project(libgcov C)
include(sparc-rtems)
include(cppcheck)
set(LIB_GCOV_SOURCES
gcov-io.c
gcov-io.h
gcov-iov.h
libgcov.c
)
add_library(gcov STATIC ${LIB_GCOV_SOURCES})
add_custom_target(gcovr
COMMAND gcovr --exclude='.*gcov.*' --gcov-executable=${rtems_dir}/bin/sparc-rtems-gcov --object-directory ${CMAKE_BINARY_DIR} -r ${CMAKE_SOURCE_DIR} --html --html-details -o ${CMAKE_CURRENT_BINARY_DIR}/gcov.html && xdg-open ${CMAKE_CURRENT_BINARY_DIR}/gcov.html
)