| Index: build/config/c++/c++.gni
|
| diff --git a/build/config/c++/c++.gni b/build/config/c++/c++.gni
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e83c50ecfa9be30fe0319d4a9d20032c2bcb3f53
|
| --- /dev/null
|
| +++ b/build/config/c++/c++.gni
|
| @@ -0,0 +1,19 @@
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//build/config/sanitizers/sanitizers.gni")
|
| +
|
| +if (current_toolchain != default_toolchain) {
|
| + use_custom_libcxx = false
|
| +}
|
| +
|
| +declare_args() {
|
| + # Use libc++ (buildtools/third_party/libc++ and
|
| + # buildtools/third_party/libc++abi) instead of stdlibc++ as standard
|
| + # library.
|
| + use_custom_libcxx =
|
| + (is_asan && is_linux && !is_chromeos &&
|
| + (!is_chromecast || is_cast_desktop_build)) || is_tsan || is_msan ||
|
| + is_ubsan || is_ubsan_security || (use_libfuzzer && !is_mac) || use_afl
|
| +}
|
|
|