[PATCH] D131723: [bazel] Use lld in --config=generic_clang

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 11:46:05 PDT 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG76b1e8365ab1: [bazel] Use lld in --config=generic_clang (authored by aeubanks).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131723/new/

https://reviews.llvm.org/D131723

Files:
  utils/bazel/.bazelrc


Index: utils/bazel/.bazelrc
===================================================================
--- utils/bazel/.bazelrc
+++ utils/bazel/.bazelrc
@@ -45,6 +45,10 @@
 # not the point of the Bazel build to catch usage of deprecated APIs.
 build:generic_clang --copt=-Wno-deprecated --host_copt=-Wno-deprecated
 
+# lld links faster than other linkers. Assume that anybody using clang also has
+# lld available.
+build:generic_clang --linkopt=-fuse-ld=lld --host_linkopt=-fuse-ld=lld
+
 ###############################################################################
 # Options for "generic_gcc" builds: these options should generally apply to
 # builds using a GCC-based compiler, and default to the `gcc` executable on


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131723.452258.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220812/45e88ca9/attachment.bin>


More information about the llvm-commits mailing list