CodeCoverage.cmake: unknown argument: '-fprofile-abs-path'
lesomnus opened this issue · 0 comments
lesomnus commented
Error
error: unknown argument: '-fprofile-abs-path' [clang-diagnostic-error]
Environment:
$ clang-11 --version
Debian clang version 11.0.1-2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ g++ --version
g++ (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcovr --version
gcovr 4.2
Copyright 2013-2018 the gcovr authors
Copyright 2013 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
CMake is configured by
/usr/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H/path/to/workspace -B/path/to/workspace/build/Debug -G "Unix Makefiles"
It seems that the flag profile-abs-path
is available on gcc11, but why am I getting the error?