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

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

Issue 2711753005: Use -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION for libFuzzer and AFL. (Closed)
Patch Set: Created 3 years, 10 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/OWNERS ('k') | no next file » | 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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/toolchain/toolchain.gni") 6 import("//build/toolchain/toolchain.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Compile for Address Sanitizer to find memory bugs. 9 # Compile for Address Sanitizer to find memory bugs.
10 is_asan = false 10 is_asan = false
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 is_msan = false 102 is_msan = false
103 is_syzyasan = false 103 is_syzyasan = false
104 is_tsan = false 104 is_tsan = false
105 is_ubsan = false 105 is_ubsan = false
106 is_ubsan_null = false 106 is_ubsan_null = false
107 is_ubsan_no_recover = false 107 is_ubsan_no_recover = false
108 is_ubsan_security = false 108 is_ubsan_security = false
109 is_ubsan_vptr = false 109 is_ubsan_vptr = false
110 msan_track_origins = 0 110 msan_track_origins = 0
111 sanitizer_coverage_flags = "" 111 sanitizer_coverage_flags = ""
112 use_afl = false
112 use_cfi_diag = false 113 use_cfi_diag = false
113 use_custom_libcxx = false 114 use_custom_libcxx = false
114 use_drfuzz = false 115 use_drfuzz = false
115 use_libfuzzer = false 116 use_libfuzzer = false
116 use_prebuilt_instrumented_libraries = false 117 use_prebuilt_instrumented_libraries = false
117 use_locally_built_instrumented_libraries = false 118 use_locally_built_instrumented_libraries = false
118 use_sanitizer_coverage = false 119 use_sanitizer_coverage = false
119 } 120 }
120 121
121 # Args that are in turn dependent on other args must be in a separate 122 # Args that are in turn dependent on other args must be in a separate
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr), 183 assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr),
183 "Sanitizers should generally be used in release (set is_debug=false).") 184 "Sanitizers should generally be used in release (set is_debug=false).")
184 185
185 assert(!is_msan || (is_linux && current_cpu == "x64"), 186 assert(!is_msan || (is_linux && current_cpu == "x64"),
186 "MSan currently only works on 64-bit Linux and ChromeOS builds.") 187 "MSan currently only works on 64-bit Linux and ChromeOS builds.")
187 188
188 # ASAN build on Windows is not working in debug mode. Intercepting memory 189 # ASAN build on Windows is not working in debug mode. Intercepting memory
189 # allocation functions is hard on Windows and not yet implemented in LLVM. 190 # allocation functions is hard on Windows and not yet implemented in LLVM.
190 assert(!is_win || !is_debug || !is_asan, 191 assert(!is_win || !is_debug || !is_asan,
191 "ASan on Windows doesn't work in debug (set is_debug=false).") 192 "ASan on Windows doesn't work in debug (set is_debug=false).")
OLDNEW
« no previous file with comments | « build/config/sanitizers/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698