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

Side by Side Diff: build/sanitizers/sanitizer_options.cc

Issue 2748103007: Fix syntax of sanitizer_options (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file contains the default options for various compiler-based dynamic 5 // This file contains the default options for various compiler-based dynamic
6 // tools. 6 // tools.
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) 10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // detect_stack_use_after_return=1 - use fake stack to delay the reuse of 59 // detect_stack_use_after_return=1 - use fake stack to delay the reuse of
60 // stack allocations and detect stack-use-after-return errors. 60 // stack allocations and detect stack-use-after-return errors.
61 #if defined(OS_LINUX) 61 #if defined(OS_LINUX)
62 #if defined(GOOGLE_CHROME_BUILD) 62 #if defined(GOOGLE_CHROME_BUILD)
63 // Default AddressSanitizer options for the official build. These do not affect 63 // Default AddressSanitizer options for the official build. These do not affect
64 // tests on buildbots (which don't set GOOGLE_CHROME_BUILD) or non-official 64 // tests on buildbots (which don't set GOOGLE_CHROME_BUILD) or non-official
65 // Chromium builds. 65 // Chromium builds.
66 const char kAsanDefaultOptions[] = 66 const char kAsanDefaultOptions[] =
67 "legacy_pthread_cond=1 malloc_context_size=5 " 67 "legacy_pthread_cond=1 malloc_context_size=5 "
68 "symbolize=1 check_printf=1 use_sigaltstack=1 detect_leaks=0 " 68 "symbolize=1 check_printf=1 use_sigaltstack=1 detect_leaks=0 "
69 "strip_path_prefix=/../../ fast_unwind_on_fatal=1" 69 "strip_path_prefix=/../../ fast_unwind_on_fatal=1 "
70 "allow_user_segv_handler=1 "; 70 "allow_user_segv_handler=1 ";
71 #else 71 #else
72 // Default AddressSanitizer options for buildbots and non-official builds. 72 // Default AddressSanitizer options for buildbots and non-official builds.
73 const char* kAsanDefaultOptions = 73 const char* kAsanDefaultOptions =
74 "symbolize=1 check_printf=1 use_sigaltstack=1 " 74 "symbolize=1 check_printf=1 use_sigaltstack=1 "
75 "detect_leaks=0 strip_path_prefix=/../../ fast_unwind_on_fatal=1 " 75 "detect_leaks=0 strip_path_prefix=/../../ fast_unwind_on_fatal=1 "
76 "detect_stack_use_after_return=1 " 76 "detect_stack_use_after_return=1 "
77 "allow_user_segv_handler=1 "; 77 "allow_user_segv_handler=1 ";
78 #endif // GOOGLE_CHROME_BUILD 78 #endif // GOOGLE_CHROME_BUILD
79 79
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Default options for UndefinedBehaviorSanitizer: 180 // Default options for UndefinedBehaviorSanitizer:
181 // print_stacktrace=1 - print the stacktrace when UBSan reports an error. 181 // print_stacktrace=1 - print the stacktrace when UBSan reports an error.
182 const char kUbsanDefaultOptions[] = 182 const char kUbsanDefaultOptions[] =
183 "print_stacktrace=1 strip_path_prefix=/../../ "; 183 "print_stacktrace=1 strip_path_prefix=/../../ ";
184 184
185 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() { 185 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() {
186 return kUbsanDefaultOptions; 186 return kUbsanDefaultOptions;
187 } 187 }
188 188
189 #endif // UNDEFINED_SANITIZER 189 #endif // UNDEFINED_SANITIZER
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698