Revert "collect C++ code coverage (#23619)"

This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a.

old-commit-hash: a62e9140908f40f6966d977373e9d458bd9a53d2
This commit is contained in:
Willem Melching
2022-01-26 10:59:21 +01:00
parent dc20ab6c42
commit 772f394423
6 changed files with 10 additions and 46 deletions
-13
View File
@@ -52,11 +52,6 @@ AddOption('--no-thneed',
dest='no_thneed',
help='avoid using thneed')
AddOption('--coverage',
action='store_true',
dest='coverage',
help='outpute covarge information')
real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
if platform.system() == "Darwin":
arch = "Darwin"
@@ -173,10 +168,6 @@ else:
ccflags = []
ldflags = []
if GetOption('coverage'):
ccflags += ["-fprofile-arcs", "-ftest-coverage"]
ldflags += ["-fprofile-arcs", "-ftest-coverage"]
# no --as-needed on mac linker
if arch != "Darwin":
ldflags += ["-Wl,--as-needed", "-Wl,--no-undefined"]
@@ -294,10 +285,6 @@ elif arch == "aarch64":
else:
envCython["LINKFLAGS"] = ["-pthread", "-shared"]
if GetOption('coverage'):
envCython['CCFLAGS'] += ["-fprofile-arcs", "-ftest-coverage"]
envCython['LINKFLAGS'] += ["-fprofile-arcs", "-ftest-coverage"]
Export('envCython')
# Qt build environment