Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Side by Side Diff: gypfiles/coverage_wrapper.py

Issue 1848553003: [gn] Move build to gypfiles (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Preserve old state for the dance Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gypfiles/config/win/msvs_dependencies.isolate ('k') | gypfiles/detect_v8_host_arch.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved. 2 # Copyright 2016 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # CC/CXX wrapper script that excludes certain file patterns from coverage 6 # CC/CXX wrapper script that excludes certain file patterns from coverage
7 # instrumentation. 7 # instrumentation.
8 8
9 import re 9 import re
10 import subprocess 10 import subprocess
(...skipping 16 matching lines...) Expand all
27 for exclusion in exclusions: 27 for exclusion in exclusions:
28 if re.search(r'\-o obj/%s[^ ]*\.o' % exclusion, text): 28 if re.search(r'\-o obj/%s[^ ]*\.o' % exclusion, text):
29 remove_if_exists(args, '-fprofile-arcs') 29 remove_if_exists(args, '-fprofile-arcs')
30 remove_if_exists(args, '-ftest-coverage') 30 remove_if_exists(args, '-ftest-coverage')
31 remove_if_exists(args, '-fsanitize-coverage=func') 31 remove_if_exists(args, '-fsanitize-coverage=func')
32 remove_if_exists(args, '-fsanitize-coverage=bb') 32 remove_if_exists(args, '-fsanitize-coverage=bb')
33 remove_if_exists(args, '-fsanitize-coverage=edge') 33 remove_if_exists(args, '-fsanitize-coverage=edge')
34 break 34 break
35 35
36 sys.exit(subprocess.check_call(args)) 36 sys.exit(subprocess.check_call(args))
OLDNEW
« no previous file with comments | « gypfiles/config/win/msvs_dependencies.isolate ('k') | gypfiles/detect_v8_host_arch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698