Commit cfea5c30 authored by James Zern's avatar James Zern

cmake: fix -DCONFIG_GCOV=1

the coverage flags are required at link time as well as compile time

Change-Id: Ic581f8ce747615f1fa1dc13d989d6e233e982572
parent 13fc8194
......@@ -191,6 +191,7 @@ endif ()
if (CONFIG_GCOV)
message("--- Testing for CONFIG_GCOV support.")
require_linker_flag("-fprofile-arcs -ftest-coverage")
require_compiler_flag("-fprofile-arcs -ftest-coverage" YES)
endif ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment