mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
Revert "collect C++ code coverage (#23619)"
This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a. old-commit-hash: a62e9140908f40f6966d977373e9d458bd9a53d2
This commit is contained in:
-13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user