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

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

Issue 2943863002: Set using_sanitizer if use_cfi_diag is true. (Closed)
Patch Set: Created 3 years, 6 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 | « build/config/compiler/BUILD.gn ('k') | build/config/sanitizers/sanitizers.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 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_overrides/build.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/clang/clang.gni") 8 import("//build/config/clang/clang.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 cflags += [ 266 cflags += [
267 # Column info in debug data confuses Visual Studio's debugger, so don't 267 # Column info in debug data confuses Visual Studio's debugger, so don't
268 # use this by default. However, clusterfuzz needs it for good attribution 268 # use this by default. However, clusterfuzz needs it for good attribution
269 # of reports to CLs, so turn it on there. 269 # of reports to CLs, so turn it on there.
270 "-gcolumn-info", 270 "-gcolumn-info",
271 ] 271 ]
272 } 272 }
273 273
274 # Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer, 274 # Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer,
275 # MemorySanitizer and non-official CFI builds. 275 # MemorySanitizer and CFI with diagnostics.
276 if (using_sanitizer || (is_cfi && !is_official_build)) { 276 if (using_sanitizer) {
277 if (is_posix) { 277 if (is_posix) {
278 cflags += [ "-fno-omit-frame-pointer" ] 278 cflags += [ "-fno-omit-frame-pointer" ]
Nico 2017/06/19 19:29:41 This still doesn't happen in prod builds, right? C
pcc1 2017/06/19 22:18:52 That would essentially forbid sanitizers in offici
Nico 2017/06/19 23:50:28 I think so? Not sure, but with this change it see
pcc1 2017/06/19 23:59:08 Seems reasonable enough. I was imagining that peop
279 } else { 279 } else {
280 cflags += [ "/Oy-" ] 280 cflags += [ "/Oy-" ]
281 } 281 }
282 } 282 }
283 } 283 }
284 284
285 # TODO(thomasanderson): Move this out of build/config/sanitizers. 285 # TODO(thomasanderson): Move this out of build/config/sanitizers.
286 config("libcxx_flags") { 286 config("libcxx_flags") {
287 if (use_custom_libcxx) { 287 if (use_custom_libcxx) {
288 prefix = "//buildtools/third_party" 288 prefix = "//buildtools/third_party"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 # This allows to selectively disable ubsan_vptr, when needed. In particular, 572 # This allows to selectively disable ubsan_vptr, when needed. In particular,
573 # if some third_party code is required to be compiled without rtti, which 573 # if some third_party code is required to be compiled without rtti, which
574 # is a requirement for ubsan_vptr. 574 # is a requirement for ubsan_vptr.
575 config("default_sanitizer_flags_but_ubsan_vptr") { 575 config("default_sanitizer_flags_but_ubsan_vptr") {
576 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 576 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
577 } 577 }
578 578
579 config("default_sanitizer_flags_but_coverage") { 579 config("default_sanitizer_flags_but_coverage") {
580 configs = all_sanitizer_configs - [ ":coverage_flags" ] 580 configs = all_sanitizer_configs - [ ":coverage_flags" ]
581 } 581 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698