Skip to content

Commit

Permalink
[bazel] Use lld in --config=generic_clang
Browse files Browse the repository at this point in the history
This should give us faster links.

Differential Revision: https://reviews.llvm.org/D131723
  • Loading branch information
aeubanks committed Aug 12, 2022
1 parent 3f2f23c commit 76b1e83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/bazel/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ build:generic_clang --cxxopt=-Wno-range-loop-analysis --host_cxxopt=-Wno-range-l
# 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
Expand Down

0 comments on commit 76b1e83

Please sign in to comment.