| Index: build/toolchain/toolchain.gni
|
| diff --git a/build/toolchain/toolchain.gni b/build/toolchain/toolchain.gni
|
| index 922a9c7d39933114fb9da51f298dd3cd60f2e7c9..b14928d32e7869e7bfeca1ce784bca04cba17be7 100644
|
| --- a/build/toolchain/toolchain.gni
|
| +++ b/build/toolchain/toolchain.gni
|
| @@ -17,12 +17,6 @@ declare_args() {
|
| is_clang && target_os == "linux" && !is_chromeos && target_cpu == "x64" &&
|
| is_official_build
|
|
|
| - # Set to true to use lld, the LLVM linker. This flag may be used on Windows
|
| - # with the shipped LLVM toolchain, or on Linux with a self-built top-of-tree
|
| - # LLVM toolchain (see llvm_force_head_revision in
|
| - # build/config/compiler/BUILD.gn).
|
| - use_lld = is_win && host_os != "win"
|
| -
|
| # If used with allow_posix_link_time_opt, it enables the experimental support
|
| # of ThinLTO that links 3x-10x faster but (as of now) does not have all the
|
| # important optimizations such us devirtualization implemented. See also
|
| @@ -53,6 +47,12 @@ declare_args() {
|
| # Clang compiler version. Clang files are placed at version-dependent paths.
|
| clang_version = "5.0.0"
|
| }
|
| +
|
| + # Set to true to use lld, the LLVM linker. This flag may be used on Windows
|
| + # or Linux.
|
| + use_lld = (is_win && host_os != "win") ||
|
| + (allow_posix_link_time_opt && target_os == "linux" &&
|
| + !is_chromeos && target_cpu == "x64")
|
| }
|
|
|
| # Check target_os here instead of is_ios as this file is loaded for secondary
|
|
|