OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 # | 135 # |
136 # If you find a use-case where you want to compile a sanitizer in debug mode | 136 # If you find a use-case where you want to compile a sanitizer in debug mode |
137 # and have verified it works, ask brettw and we can consider removing it from | 137 # and have verified it works, ask brettw and we can consider removing it from |
138 # this condition. We may also be able to find another way to enable your case | 138 # this condition. We may also be able to find another way to enable your case |
139 # without having people accidentally get broken builds by compiling an | 139 # without having people accidentally get broken builds by compiling an |
140 # unsupported or unadvisable configurations. | 140 # unsupported or unadvisable configurations. |
141 # | 141 # |
142 # For one-off testing, just comment this assertion out. | 142 # For one-off testing, just comment this assertion out. |
143 assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr), | 143 assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr), |
144 "Sanitizers should generally be used in release (set is_debug=false).") | 144 "Sanitizers should generally be used in release (set is_debug=false).") |
| 145 |
| 146 assert(!is_msan || (is_linux && current_cpu == "x64"), |
| 147 "MSan currently only works on 64-bit Linux and ChromeOS builds.") |
OLD | NEW |