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

Side by Side Diff: webrtc/build/common.gypi

Issue 2144273002: Add minimal LLVM sanity coverage (sancov) reporting for unittests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add minimal LLVM sanity coverage (sancov) reporting for unittests. Created 4 years, 5 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 | « webrtc/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 # This file contains common settings for building WebRTC components. 9 # This file contains common settings for building WebRTC components.
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 # third party code will still have the reduced warning settings. 91 # third party code will still have the reduced warning settings.
92 'chromium_code': 1, 92 'chromium_code': 1,
93 93
94 # Targets are by default not NaCl untrusted code. Use this variable exclude 94 # Targets are by default not NaCl untrusted code. Use this variable exclude
95 # code that uses libraries that aren't available in the NaCl sandbox. 95 # code that uses libraries that aren't available in the NaCl sandbox.
96 'nacl_untrusted_build%': 0, 96 'nacl_untrusted_build%': 0,
97 97
98 # Set to 1 to enable code coverage on Linux using the gcov library. 98 # Set to 1 to enable code coverage on Linux using the gcov library.
99 'coverage%': 0, 99 'coverage%': 0,
100 100
101 # Set to "func", "block", "edge" for coverage generation.
102 # At unit test runtime set UBSAN_OPTIONS="coverage=1".
103 # It is recommend to set include_examples=0.
104 # Use llvm's sancov -html-report for human readable reports.
105 # See http://clang.llvm.org/docs/SanitizerCoverage.html .
106 'webrtc_sanitize_coverage%': "",
107
101 # Remote bitrate estimator logging/plotting. 108 # Remote bitrate estimator logging/plotting.
102 'enable_bwe_test_logging%': 0, 109 'enable_bwe_test_logging%': 0,
103 110
104 # Selects fixed-point code where possible. 111 # Selects fixed-point code where possible.
105 'prefer_fixed_point%': 0, 112 'prefer_fixed_point%': 0,
106 113
107 # Enable data logging. Produces text files with data logged within engines 114 # Enable data logging. Produces text files with data logged within engines
108 # which can be easily parsed for offline processing. 115 # which can be easily parsed for offline processing.
109 'enable_data_logging%': 0, 116 'enable_data_logging%': 0,
110 117
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 ], 399 ],
393 }], 400 }],
394 ], 401 ],
395 }], 402 }],
396 ['coverage==1 and OS=="linux"', { 403 ['coverage==1 and OS=="linux"', {
397 'cflags': [ '-ftest-coverage', 404 'cflags': [ '-ftest-coverage',
398 '-fprofile-arcs' ], 405 '-fprofile-arcs' ],
399 'ldflags': [ '--coverage' ], 406 'ldflags': [ '--coverage' ],
400 'link_settings': { 'libraries': [ '-lgcov' ] }, 407 'link_settings': { 'libraries': [ '-lgcov' ] },
401 }], 408 }],
409 ['webrtc_sanitize_coverage!=""', {
410 'cflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ],
411 'ldflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ],
412 }],
413 ['webrtc_sanitize_coverage!="" and OS=="mac"', {
414 'xcode_settings': {
415 'OTHER_CFLAGS': [
416 '-fsanitize-coverage=func',
417 ],
418 },
419 }],
402 ['os_posix==1', { 420 ['os_posix==1', {
403 # For access to standard POSIXish features, use WEBRTC_POSIX instead of 421 # For access to standard POSIXish features, use WEBRTC_POSIX instead of
404 # a more specific macro. 422 # a more specific macro.
405 'defines': [ 423 'defines': [
406 'WEBRTC_POSIX', 424 'WEBRTC_POSIX',
407 ], 425 ],
408 }], 426 }],
409 ['OS=="ios"', { 427 ['OS=="ios"', {
410 'defines': [ 428 'defines': [
411 'WEBRTC_MAC', 429 'WEBRTC_MAC',
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 }], 598 }],
581 ['OS=="freebsd"', { 599 ['OS=="freebsd"', {
582 'defines': [ 600 'defines': [
583 'FREEBSD', 601 'FREEBSD',
584 ], 602 ],
585 }], 603 }],
586 ], 604 ],
587 }, 605 },
588 }, # target_defaults 606 }, # target_defaults
589 } 607 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698