Commit 7cc7a4d6 authored by Oleh Prypin's avatar Oleh Prypin Committed by Commit Bot

Use LLD linker only with Clang

LLD is not applicable when using a different compiler (GCC at least)

Bug: chromium:607968
Change-Id: I5f4f53a5c91c52cc5ff9a0b9c5f2c5043c7add46
Reviewed-on: https://chromium-review.googlesource.com/700456Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Oleh Prypin <oprypin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506409}
parent 6a6e35ff
...@@ -151,9 +151,10 @@ declare_args() { ...@@ -151,9 +151,10 @@ declare_args() {
# Linux or Fuchsia. # Linux or Fuchsia.
# TODO(pcc): Enable lld on more architectures on Linux. E.g. we probably need # TODO(pcc): Enable lld on more architectures on Linux. E.g. we probably need
# to fix some of crbug.com/742655 to enable it on ARM. # to fix some of crbug.com/742655 to enable it on ARM.
use_lld = (is_win && host_os != "win") || is_fuchsia || use_lld = is_clang &&
(use_thin_lto && target_os != "chromeos") || ((is_win && host_os != "win") || is_fuchsia ||
(is_linux && current_cpu == "x64" && target_os != "chromeos") (use_thin_lto && target_os != "chromeos") ||
(is_linux && current_cpu == "x64" && target_os != "chromeos"))
} }
declare_args() { declare_args() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment