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

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

Issue 1469943002: GN(android): Fix up support for is_asan=true (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 years 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') | 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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 # If you find a use-case where you want to compile a sanitizer in debug mode 78 # If you find a use-case where you want to compile a sanitizer in debug mode
79 # and have verified it works, ask brettw and we can consider removing it from 79 # and have verified it works, ask brettw and we can consider removing it from
80 # this condition. We may also be able to find another way to enable your case 80 # this condition. We may also be able to find another way to enable your case
81 # without having people accidentally get broken builds by compiling an 81 # without having people accidentally get broken builds by compiling an
82 # unsupported or unadvisable configurations. 82 # unsupported or unadvisable configurations.
83 # 83 #
84 # For one-off testing, just comment this assertion out. 84 # For one-off testing, just comment this assertion out.
85 assert( 85 assert(
86 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), 86 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr),
87 "Sanitizers should generally be used in release (set is_debug=false).") 87 "Sanitizers should generally be used in release (set is_debug=false).")
88
89 assert(!(is_android && is_asan && !is_component_build),
90 "is_asan on Android requires is_component_build to be set")
OLDNEW
« no previous file with comments | « build/config/sanitizers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698