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

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

Issue 2031903002: Update GN files w/ changes needed to make sanitizers work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix symbolized definition Created 4 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
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
(...skipping 28 matching lines...) Expand all
39 # errors. Only works on Windows. See 39 # errors. Only works on Windows. See
40 # https://github.com/google/syzygy/wiki/SyzyASanHowTo 40 # https://github.com/google/syzygy/wiki/SyzyASanHowTo
41 is_syzyasan = false 41 is_syzyasan = false
42 42
43 # Compile with Control Flow Integrity to protect virtual calls and casts. 43 # Compile with Control Flow Integrity to protect virtual calls and casts.
44 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html 44 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html
45 # 45 #
46 # TODO(pcc): Remove this flag if/when CFI is enabled in official builds. 46 # TODO(pcc): Remove this flag if/when CFI is enabled in official builds.
47 is_cfi = false 47 is_cfi = false
48 48
49 # Optimize only as much as you can while preserving good stack traces and
50 # symbols.
51 symbolized = false
52
49 # By default, Control Flow Integrity will crash the program if it detects a 53 # By default, Control Flow Integrity will crash the program if it detects a
50 # violation. Set this to true to print detailed diagnostics instead. 54 # violation. Set this to true to print detailed diagnostics instead.
51 use_cfi_diag = false 55 use_cfi_diag = false
52 56
53 # Compile for fuzzing with LLVM LibFuzzer. 57 # Compile for fuzzing with LLVM LibFuzzer.
54 # See http://www.chromium.org/developers/testing/libfuzzer 58 # See http://www.chromium.org/developers/testing/libfuzzer
55 use_libfuzzer = false 59 use_libfuzzer = false
56 60
57 # Enables core ubsan security features. Will later be removed once it matches 61 # Enables core ubsan security features. Will later be removed once it matches
58 # is_ubsan. 62 # is_ubsan.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 # If you find a use-case where you want to compile a sanitizer in debug mode 110 # If you find a use-case where you want to compile a sanitizer in debug mode
107 # and have verified it works, ask brettw and we can consider removing it from 111 # and have verified it works, ask brettw and we can consider removing it from
108 # this condition. We may also be able to find another way to enable your case 112 # this condition. We may also be able to find another way to enable your case
109 # without having people accidentally get broken builds by compiling an 113 # without having people accidentally get broken builds by compiling an
110 # unsupported or unadvisable configurations. 114 # unsupported or unadvisable configurations.
111 # 115 #
112 # For one-off testing, just comment this assertion out. 116 # For one-off testing, just comment this assertion out.
113 assert( 117 assert(
114 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), 118 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr),
115 "Sanitizers should generally be used in release (set is_debug=false).") 119 "Sanitizers should generally be used in release (set is_debug=false).")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698