fix --coverage build option; building with it now creates .gcda files that gcov can use
This commit is contained in:
parent
755b771ee2
commit
9dbd2debda
1 changed files with 3 additions and 3 deletions
|
|
@ -91,9 +91,9 @@ else:
|
|||
env = opt
|
||||
|
||||
if GetOption("coverage"):
|
||||
env.Append(CFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
||||
CXXFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
||||
LDFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
||||
env.Append(CFLAGS=["--coverage"],
|
||||
CXXFLAGS=["--coverage"],
|
||||
LDFLAGS=["--coverage"],
|
||||
LIBS=['gcov'])
|
||||
|
||||
env["CC"] = os.getenv("CC") or env["CC"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue