| Index: build/config/posix/BUILD.gn
|
| diff --git a/build/config/posix/BUILD.gn b/build/config/posix/BUILD.gn
|
| index e862c50e703a75af7271e016f353e85166c42d9e..0ab4d999b8a0aed0d06fdbed2d327111c7872f06 100644
|
| --- a/build/config/posix/BUILD.gn
|
| +++ b/build/config/posix/BUILD.gn
|
| @@ -2,10 +2,26 @@
|
| # 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")
|
| import("//build/config/sysroot.gni")
|
| +import("//build/toolchain/toolchain.gni")
|
|
|
| assert(is_posix)
|
|
|
| +# This is included by reference in the //build/config/compiler config that
|
| +# is applied to all Posix targets. It is here to separate out the logic that is
|
| +# Posix-only. Note that this is in addition to an OS-specific variant of this
|
| +# config.
|
| +config("compiler") {
|
| + if ((allow_posix_link_time_opt || is_cfi) && !is_nacl) {
|
| + arflags = [
|
| + "--plugin",
|
| + rebase_path("//third_party/llvm-build/Release+Asserts/lib/LLVMgold.so",
|
| + root_build_dir),
|
| + ]
|
| + }
|
| +}
|
| +
|
| # This is included by reference in the //build/config/compiler:runtime_library
|
| # config that is applied to all targets. It is here to separate out the logic
|
| # that is Posix-only. Please see that target for advice on what should go in
|
|
|