diff --git a/utils/bazel/.bazelrc b/utils/bazel/.bazelrc --- a/utils/bazel/.bazelrc +++ b/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