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
|
env = opt
|
||||||
|
|
||||||
if GetOption("coverage"):
|
if GetOption("coverage"):
|
||||||
env.Append(CFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
env.Append(CFLAGS=["--coverage"],
|
||||||
CXXFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
CXXFLAGS=["--coverage"],
|
||||||
LDFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
LDFLAGS=["--coverage"],
|
||||||
LIBS=['gcov'])
|
LIBS=['gcov'])
|
||||||
|
|
||||||
env["CC"] = os.getenv("CC") or env["CC"]
|
env["CC"] = os.getenv("CC") or env["CC"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue