mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Update CMakeLists.txt
Remove non-compatible compile option.
This commit is contained in:
parent
20a9e91d44
commit
efa5580a67
@ -44,7 +44,8 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_CXX_COMPILER_ID}"
|
||||
CACHE STRING "Flags used for linking binaries during coverage builds" FORCE)
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS_COVERAGE
|
||||
"--coverage -fprofile-arcs -ftest-coverage -O0 -fno-default-inline -fprofile-abs-path -fno-inline -fno-inline-small-functions -fno-elide-constructors"
|
||||
# Add when GCC 9 or later is available as part of the default toolchain: -fprofile-abs-path
|
||||
"--coverage -fprofile-arcs -ftest-coverage -O0 -fno-default-inline -fno-inline -fno-inline-small-functions -fno-elide-constructors"
|
||||
CACHE STRING "Flags used by the C++ compiler during coverage builds" FORCE)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_COVERAGE
|
||||
"--coverage -ftest-coverage -lgcov"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user