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

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

Issue 2292173002: Roll clang 278861:280106. (Closed)
Patch Set: flag tweaks Created 4 years, 3 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
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 224 }
225 225
226 config("common_sanitizer_flags") { 226 config("common_sanitizer_flags") {
227 cflags = [] 227 cflags = []
228 cflags_cc = [] 228 cflags_cc = []
229 229
230 # Sanitizers need line table info for stack traces. They don't need type info 230 # Sanitizers need line table info for stack traces. They don't need type info
231 # or variable info, so we can leave that out to speed up the build. 231 # or variable info, so we can leave that out to speed up the build.
232 if (using_sanitizer) { 232 if (using_sanitizer) {
233 assert(is_clang, "sanitizers only supported with clang") 233 assert(is_clang, "sanitizers only supported with clang")
234 cflags += [ "-gline-tables-only" ] 234 cflags += [
235 "-gline-tables-only",
236
237 # Column info in debug data confuses Visual Studio's debugger, so don't
238 # use this by default. However, clusterfuzz needs it for good attribution
239 # of reports to CLs, so turn it on there.
240 "-gcolumn-info",
241 ]
235 } 242 }
236 243
237 # Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer, 244 # Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer,
238 # MemorySanitizer and non-official CFI builds. 245 # MemorySanitizer and non-official CFI builds.
239 if (using_sanitizer || (is_cfi && !is_official_build)) { 246 if (using_sanitizer || (is_cfi && !is_official_build)) {
240 if (is_posix) { 247 if (is_posix) {
241 cflags += [ "-fno-omit-frame-pointer" ] 248 cflags += [ "-fno-omit-frame-pointer" ]
242 } else { 249 } else {
243 cflags += [ "/Oy-" ] 250 cflags += [ "/Oy-" ]
244 } 251 }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 # This allows to selectively disable ubsan_vptr, when needed. In particular, 501 # This allows to selectively disable ubsan_vptr, when needed. In particular,
495 # if some third_party code is required to be compiled without rtti, which 502 # if some third_party code is required to be compiled without rtti, which
496 # is a requirement for ubsan_vptr. 503 # is a requirement for ubsan_vptr.
497 config("default_sanitizer_flags_but_ubsan_vptr") { 504 config("default_sanitizer_flags_but_ubsan_vptr") {
498 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 505 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
499 } 506 }
500 507
501 config("default_sanitizer_flags_but_coverage") { 508 config("default_sanitizer_flags_but_coverage") {
502 configs = all_sanitizer_configs - [ ":coverage_flags" ] 509 configs = all_sanitizer_configs - [ ":coverage_flags" ]
503 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698