You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -94,17 +94,17 @@ Our build scripts will automatically detect and use `ccache` if available. You c
94
94
95
95
## Install LLVM
96
96
97
-
Bun requires LLVM 21.1.8 (`clang` is part of LLVM). This version is enforced by the build system — mismatching versions will cause memory allocation failures at runtime. In most cases, you can install LLVM through your system package manager:
97
+
Bun follows the current stable LLVM toolchain provided by your package source. The build only discovers the unversioned tools (`clang`, `clang++`, `ld.lld`, and the other `llvm-*` commands); it does not maintain fallbacks for older versioned release lines. In most cases, install LLVM through your system package manager:
98
98
99
99
{% codetabs group="os" %}
100
100
101
101
```bash#macOS (Homebrew)
102
-
$ brew install llvm@21
102
+
$ brew install llvm
103
103
```
104
104
105
105
```bash#Ubuntu/Debian
106
106
$ # LLVM has an automatic installation script that is compatible with all versions of Ubuntu
@@ -142,7 +140,7 @@ You can also build Windows binaries (both x64 and arm64) on a Linux host. The bu
142
140
143
141
### Prerequisites
144
142
145
-
1. The same LLVM version a native build uses (see `scripts/bootstrap.sh``llvm_version_exact`), installed so that `clang-cl`, `lld-link`, `llvm-lib` and `llvm-rc` are available. On Debian/Ubuntu, `apt.llvm.org` packages provide all of them.
143
+
1. The current stable LLVM toolchain, installed so the unversioned `clang-cl`, `lld-link`, `llvm-lib` and `llvm-rc` commands are available. On Debian/Ubuntu, `apt.llvm.org` packages provide all of them.
146
144
2.`nasm` (only needed for Windows x64; BoringSSL's x64 assembly is NASM syntax).
147
145
3. Rust std for the Windows targets (`rust-toolchain.toml` lists them; `rustup target add x86_64-pc-windows-msvc aarch64-pc-windows-msvc` if missing).
148
146
4. A Windows sysroot: an [xwin](https://github.com/Jake-Shadle/xwin) splat of the MSVC CRT, Windows SDK, and ATL laid out like a Visual Studio install. Downloading these components means accepting Microsoft's license terms for them.
Copy file name to clipboardExpand all lines: docs/project/contributing.mdx
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ sudo pacman -S base-devel cmake git go libiconv libtool make ninja pkg-config py
37
37
```
38
38
39
39
```bash Fedora
40
-
sudo dnf install clang21 llvm21 lld21 cmake git golang libtool ninja-build pkg-config ruby libatomic-static libstdc++-static sed unzip which libicu-devel 'perl(Math::BigInt)'
40
+
sudo dnf install clang llvm lld cmake git golang libtool ninja-build pkg-config ruby libatomic-static libstdc++-static sed unzip which libicu-devel 'perl(Math::BigInt)'
41
41
```
42
42
43
43
```bash openSUSE Tumbleweed
@@ -96,17 +96,17 @@ The build scripts detect and use `ccache` automatically if it's available. Check
96
96
97
97
## Install LLVM
98
98
99
-
Bun requires LLVM 21.1.8 (`clang` is part of LLVM). The build system enforces this version: a mismatched version causes memory allocation failures at runtime. In most cases, you can install LLVM through your system package manager:
99
+
Bun follows the current stable LLVM toolchain provided by your package source. The build only discovers the unversioned tools (`clang`, `clang++`, `ld.lld`, and the other `llvm-*` commands); it does not maintain fallbacks for older versioned release lines. In most cases, install LLVM through your system package manager:
100
100
101
101
<CodeGroup>
102
102
103
103
```bash macOS (Homebrew)
104
-
brew install llvm@21
104
+
brew install llvm
105
105
```
106
106
107
107
```bash Ubuntu/Debian
108
108
# LLVM has an automatic installation script that is compatible with all versions of Ubuntu
0 commit comments