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

Unified Diff: webrtc/BUILD.gn

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/sancov/blacklist.txt ('k') | webrtc/build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/BUILD.gn
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
index 200d2e08cd726dead844a6e47cbfe936dbf1b486..287d224d435500400274f3276f77dc1f7db77abc 100644
--- a/webrtc/BUILD.gn
+++ b/webrtc/BUILD.gn
@@ -18,6 +18,8 @@ import("//third_party/protobuf/proto_library.gni")
# target_defaults and direct_dependent_settings.
config("common_inherited_config") {
defines = []
+ cflags = []
+ ldflags = []
if (build_with_mozilla) {
defines += [ "WEBRTC_MOZILLA_BUILD" ]
}
@@ -77,6 +79,12 @@ config("common_inherited_config") {
defines += [ "CHROMEOS" ]
}
+ if (rtc_sanitize_coverage != "") {
+ assert(is_clang, "sanitizer coverage requires clang")
+ cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
+ ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
+ }
+
# TODO(GYP): Support these in GN.
# if (is_bsd) {
# defines += [ "BSD" ]
« no previous file with comments | « tools/sancov/blacklist.txt ('k') | webrtc/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698