OLD | NEW |
---|---|
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
6 | 6 |
7 if (current_toolchain != default_toolchain) { | 7 if (current_toolchain != default_toolchain) { |
8 use_custom_libcxx = false | 8 use_custom_libcxx = false |
9 } | 9 } |
10 | 10 |
11 declare_args() { | 11 declare_args() { |
12 # Use libc++ (buildtools/third_party/libc++ and | 12 # Use libc++ (buildtools/third_party/libc++ and |
13 # buildtools/third_party/libc++abi) instead of stdlibc++ as standard | 13 # buildtools/third_party/libc++abi) instead of stdlibc++ as standard |
14 # library. | 14 # library. |
15 use_custom_libcxx = | 15 use_custom_libcxx = |
16 (is_linux && !is_chromeos) || | |
Nico
2017/06/29 18:30:54
The next line suggests that this wants to be is_li
Tom Anderson
2017/06/29 19:42:11
Done. I'll hold off on changing the second half s
| |
16 (is_asan && is_linux && !is_chromeos && | 17 (is_asan && is_linux && !is_chromeos && |
17 (!is_chromecast || is_cast_desktop_build)) || is_tsan || is_msan || | 18 (!is_chromecast || is_cast_desktop_build)) || is_tsan || is_msan || |
18 is_ubsan || is_ubsan_security || (use_libfuzzer && !is_mac) || use_afl | 19 is_ubsan || is_ubsan_security || (use_libfuzzer && !is_mac) || use_afl |
19 } | 20 } |
OLD | NEW |