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

Side by Side Diff: build/config/sanitizers/BUILD.gn

Issue 2267753002: Make lsan and tsan suppressions files overridable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the variables to build/config/sanitizers/BUILD.gn. Created 4 years, 4 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 | « no previous file | build_overrides/build.gni » ('j') | build_overrides/build.gni » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build_overrides/build.gni")
5 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
6 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
7 import("//build/config/clang/clang.gni") 8 import("//build/config/clang/clang.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
9 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
10 11
11 # Contains the dependencies needed for sanitizers to link into executables and 12 # Contains the dependencies needed for sanitizers to link into executables and
12 # shared_libraries. Unconditionally depend upon this target as it is empty if 13 # shared_libraries. Unconditionally depend upon this target as it is empty if
13 # |is_asan|, |is_lsan|, |is_tsan|, |is_msan| and |use_custom_libcxx| are false. 14 # |is_asan|, |is_lsan|, |is_tsan|, |is_msan| and |use_custom_libcxx| are false.
14 group("deps") { 15 group("deps") {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 sources = [ 126 sources = [
126 "//build/sanitizers/sanitizer_options.cc", 127 "//build/sanitizers/sanitizer_options.cc",
127 ] 128 ]
128 129
129 # Don't compile this target with any sanitizer code. It can be called from 130 # Don't compile this target with any sanitizer code. It can be called from
130 # the sanitizer runtimes, so instrumenting these functions could cause 131 # the sanitizer runtimes, so instrumenting these functions could cause
131 # recursive calls into the runtime if there is an error. 132 # recursive calls into the runtime if there is an error.
132 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] 133 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ]
133 134
134 if (is_asan) { 135 if (is_asan) {
135 sources += [ "//build/sanitizers/asan_suppressions.cc" ] 136 sources += [ asan_suppressions_file ]
136 } 137 }
137 138
138 if (is_lsan) { 139 if (is_lsan) {
139 sources += [ "//build/sanitizers/lsan_suppressions.cc" ] 140 sources += [ lsan_suppressions_file ]
140 } 141 }
141 142
142 if (is_tsan) { 143 if (is_tsan) {
143 sources += [ "//build/sanitizers/tsan_suppressions.cc" ] 144 sources += [ tsan_suppressions_file ]
144 } 145 }
145 } 146 }
146 147
147 # Applies linker flags necessary when either :deps or :default_sanitizer_flags 148 # Applies linker flags necessary when either :deps or :default_sanitizer_flags
148 # are used. 149 # are used.
149 config("default_sanitizer_ldflags") { 150 config("default_sanitizer_ldflags") {
150 visibility = [ 151 visibility = [
151 ":default_sanitizer_flags", 152 ":default_sanitizer_flags",
152 ":deps", 153 ":deps",
153 ] 154 ]
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 # This allows to selectively disable ubsan_vptr, when needed. In particular, 500 # This allows to selectively disable ubsan_vptr, when needed. In particular,
500 # if some third_party code is required to be compiled without rtti, which 501 # if some third_party code is required to be compiled without rtti, which
501 # is a requirement for ubsan_vptr. 502 # is a requirement for ubsan_vptr.
502 config("default_sanitizer_flags_but_ubsan_vptr") { 503 config("default_sanitizer_flags_but_ubsan_vptr") {
503 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 504 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
504 } 505 }
505 506
506 config("default_sanitizer_flags_but_coverage") { 507 config("default_sanitizer_flags_but_coverage") {
507 configs = all_sanitizer_configs - [ ":coverage_flags" ] 508 configs = all_sanitizer_configs - [ ":coverage_flags" ]
508 } 509 }
OLDNEW
« no previous file with comments | « no previous file | build_overrides/build.gni » ('j') | build_overrides/build.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698