| 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 16 matching lines...) Expand all Loading... |
| 27 # chain of stores leading from allocation site to use site. | 27 # chain of stores leading from allocation site to use site. |
| 28 msan_track_origins = 2 | 28 msan_track_origins = 2 |
| 29 | 29 |
| 30 # Use dynamic libraries instrumented by one of the sanitizers instead of the | 30 # Use dynamic libraries instrumented by one of the sanitizers instead of the |
| 31 # standard system libraries. Set this flag to download prebuilt binaries from | 31 # standard system libraries. Set this flag to download prebuilt binaries from |
| 32 # GCS. | 32 # GCS. |
| 33 use_prebuilt_instrumented_libraries = false | 33 use_prebuilt_instrumented_libraries = false |
| 34 | 34 |
| 35 # Enable building with SyzyAsan which can find certain types of memory | 35 # Enable building with SyzyAsan which can find certain types of memory |
| 36 # errors. Only works on Windows. See | 36 # errors. Only works on Windows. See |
| 37 # https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo | 37 # https://github.com/google/syzygy/wiki/SyzyASanHowTo |
| 38 is_syzyasan = false | 38 is_syzyasan = false |
| 39 | 39 |
| 40 # Compile with Control Flow Integrity to protect virtual calls and casts. | 40 # Compile with Control Flow Integrity to protect virtual calls and casts. |
| 41 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html | 41 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html |
| 42 is_cfi = false | 42 is_cfi = false |
| 43 | 43 |
| 44 # By default, Control Flow Integrity will crash the program if it detects a | 44 # By default, Control Flow Integrity will crash the program if it detects a |
| 45 # violation. Set this to true to print detailed diagnostics instead. | 45 # violation. Set this to true to print detailed diagnostics instead. |
| 46 use_cfi_diag = false | 46 use_cfi_diag = false |
| 47 | 47 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 # If you find a use-case where you want to compile a sanitizer in debug mode | 82 # If you find a use-case where you want to compile a sanitizer in debug mode |
| 83 # and have verified it works, ask brettw and we can consider removing it from | 83 # and have verified it works, ask brettw and we can consider removing it from |
| 84 # this condition. We may also be able to find another way to enable your case | 84 # this condition. We may also be able to find another way to enable your case |
| 85 # without having people accidentally get broken builds by compiling an | 85 # without having people accidentally get broken builds by compiling an |
| 86 # unsupported or unadvisable configurations. | 86 # unsupported or unadvisable configurations. |
| 87 # | 87 # |
| 88 # For one-off testing, just comment this assertion out. | 88 # For one-off testing, just comment this assertion out. |
| 89 assert( | 89 assert( |
| 90 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), | 90 !is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), |
| 91 "Sanitizers should generally be used in release (set is_debug=false).") | 91 "Sanitizers should generally be used in release (set is_debug=false).") |
| OLD | NEW |