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

Side by Side Diff: build/config/sanitizers/sanitizers.gni

Issue 1942563002: gn: add is_ubsan_no_recover to halt the program on the first problem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Half->Halt Created 4 years, 7 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/sanitizers/BUILD.gn ('k') | tools/mb/mb_config.pyl » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 declare_args() { 5 declare_args() {
6 # Compile for Address Sanitizer to find memory bugs. 6 # Compile for Address Sanitizer to find memory bugs.
7 is_asan = false 7 is_asan = false
8 8
9 # Compile for Leak Sanitizer to find leaks. 9 # Compile for Leak Sanitizer to find leaks.
10 is_lsan = false 10 is_lsan = false
11 11
12 # Compile for Memory Sanitizer to find uninitialized reads. 12 # Compile for Memory Sanitizer to find uninitialized reads.
13 is_msan = false 13 is_msan = false
14 14
15 # Compile for Thread Sanitizer to find threading bugs. 15 # Compile for Thread Sanitizer to find threading bugs.
16 is_tsan = false 16 is_tsan = false
17 17
18 # Compile for Undefined Behaviour Sanitizer to find various types of 18 # Compile for Undefined Behaviour Sanitizer to find various types of
19 # undefined behaviour (excludes vptr checks). 19 # undefined behaviour (excludes vptr checks).
20 is_ubsan = false 20 is_ubsan = false
21 21
22 # Halt the program if a problem is detected.
23 is_ubsan_no_recover = false
24
22 # Compile for Undefined Behaviour Sanitizer's vptr checks. 25 # Compile for Undefined Behaviour Sanitizer's vptr checks.
23 is_ubsan_vptr = false 26 is_ubsan_vptr = false
24 27
25 # Track where uninitialized memory originates from. From fastest to slowest: 28 # Track where uninitialized memory originates from. From fastest to slowest:
26 # 0 - no tracking, 1 - track only the initial allocation site, 2 - track the 29 # 0 - no tracking, 1 - track only the initial allocation site, 2 - track the
27 # chain of stores leading from allocation site to use site. 30 # chain of stores leading from allocation site to use site.
28 msan_track_origins = 2 31 msan_track_origins = 2
29 32
30 # Use dynamic libraries instrumented by one of the sanitizers instead of the 33 # Use dynamic libraries instrumented by one of the sanitizers instead of the
31 # standard system libraries. Set this flag to download prebuilt binaries from 34 # standard system libraries. Set this flag to download prebuilt binaries from
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 # If you find a use-case where you want to compile a sanitizer in debug mode 106 # If you find a use-case where you want to compile a sanitizer in debug mode
104 # and have verified it works, ask brettw and we can consider removing it from 107 # and have verified it works, ask brettw and we can consider removing it from
105 # this condition. We may also be able to find another way to enable your case 108 # this condition. We may also be able to find another way to enable your case
106 # without having people accidentally get broken builds by compiling an 109 # without having people accidentally get broken builds by compiling an
107 # unsupported or unadvisable configurations. 110 # unsupported or unadvisable configurations.
108 # 111 #
109 # For one-off testing, just comment this assertion out. 112 # For one-off testing, just comment this assertion out.
110 assert( 113 assert(
111 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), 114 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr),
112 "Sanitizers should generally be used in release (set is_debug=false).") 115 "Sanitizers should generally be used in release (set is_debug=false).")
OLDNEW
« no previous file with comments | « build/config/sanitizers/BUILD.gn ('k') | tools/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698