Skip to content

Commit

Permalink
Always use LLD on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
npaun committed Sep 20, 2024
1 parent 1755e2b commit 80bad7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ build:linux --linkopt="-Wl,--gc-sections"
build:linux --copt="-ffunction-sections" --host_copt="-ffunction-sections"
build:linux --copt="-fdata-sections" --host_copt="-fdata-sections"

# On Linux, use clang lld.
build:linux --linkopt="-fuse-ld=lld"

#
# Windows
#
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ To build `workerd`, you need:
* On Linux:
* We use the clang/LLVM toolchain to build workerd and support version 16 and higher. Earlier versions of clang may still work, but are not officially supported.
* Clang 16+ (e.g. package `clang-16` on Debian Bookworm). If clang is installed as `clang-<version>` please create a symlink to it in your PATH named `clang`, or use `--action_env=CC=clang-<version>` on `bazel` command lines to specify the compiler name.

* libc++ 16+ (e.g. packages `libc++-16-dev` and `libc++abi-16-dev`)
* LLD 16+ (e.g. package `lld-16`). The build may still succeed if a recent version of GNU gold or the system linker is installed, but lld is highly recommended for link performance.
* LLD 16+ (e.g. package `lld-16`).
* `python3`, `python3-distutils`, and `tcl8.6`
* On macOS:
* Xcode 15 installation (available on macOS 13 and higher). **Full Xcode is required**, the Xcode command line tools alone are **not sufficient** for building.
Expand Down

0 comments on commit 80bad7f

Please sign in to comment.