Skip to content

feat: add FreeBSD x86_64 and aarch64 builds - #1325

Merged
dsherret merged 5 commits into
mainfrom
freebsd
Oct 10, 2026
Merged

dsherret merged 5 commits into
mainfrom
freebsd

Conversation

@dsherret

@dsherret dsherret commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Stacked on #1326 (aarch64 FreeBSD needs wasmtime 44+).

Adds x86_64-unknown-freebsd and aarch64-unknown-freebsd builds. Both use the regular Cranelift wasmtime setup (wasmtime has trap handling for both FreeBSD arches).

  • CI: builds both targets with cross, which links against a FreeBSD 13 sysroot.
  • CI: aarch64-unknown-freebsd is a tier 3 Rust target with no prebuilt std, so that job has cross build std from source (CROSS_BUILD_STD). -Zbuild-std is nightly only, so the job sets RUSTC_BOOTSTRAP=1 to keep building with the pinned stable toolchain like every other target. cross refuses build-std on a non-nightly rustup toolchain, so the job also sets CROSS_CUSTOM_TOOLCHAIN=1 and installs rust-src itself. The alternative is building that one target with a nightly compiler.
  • npm: adds the @dprint/freebsd-x64 and @dprint/freebsd-arm64 packages.
  • install.sh: maps FreeBSD amd64 and FreeBSD arm64.
  • Process plugins: adds freebsd-x86_64 and freebsd-aarch64 keys to the manifest.
  • Docs: the shell installer line on the install page now lists FreeBSD and Termux.

dprint upgrade needs no change because it names the zip after the target triple (#1323).

@dsherret
dsherret changed the base branch from main to wasmtime_44 October 10, 2026 20:31
Base automatically changed from wasmtime_44 to main October 10, 2026 20:42
@dsherret
dsherret merged commit bc4fd9e into main Oct 10, 2026
@dsherret
dsherret deleted the freebsd branch October 10, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant