Skip to content

Commit 503bad4

Browse files
Use bun-baseline for all x64 builds (#17267)
Closes #17259 This PR now also updates the MacOS x64 build to use `bun-baseline`, meaning all x64 builds now use baseline for the improved hardware compatibility. Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
1 parent f369e22 commit 503bad4

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Prevent segfault when loaded in a worker thread on Linux ([#17276](https://github.com/tailwindlabs/tailwindcss/pull/17276))
3131
- Ensure multiple `--value(…)` or `--modifier(…)` calls don't delete subsequent declarations ([#17273](https://github.com/tailwindlabs/tailwindcss/pull/17273))
3232
- Fix class extraction followed by `(` in Slim ([#17278](https://github.com/tailwindlabs/tailwindcss/pull/17278))
33+
- Increase Standalone hardware compatibility on macOS x64 builds ([#17267](https://github.com/tailwindlabs/tailwindcss/pull/17267))
3334

3435
## [4.0.14] - 2025-03-13
3536

packages/@tailwindcss-standalone/scripts/build.ts

+5-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ async function buildForPlatform(triple: string, outfile: string) {
1212
try {
1313
let cmd = $`bun build --compile --target=${triple} ./src/index.ts --outfile=${outfile} --env inline`
1414

15-
// This env var is used by our patched versions of Lightning CSS and Parcel Watcher
16-
// to statically bundle the proper binaries for musl vs glibc
15+
// This env var is used by our patched versions of Lightning CSS and Parcel Watcher to
16+
// statically bundle the proper binaries for musl vs glibc
1717
cmd = cmd.env({
1818
PLATFORM_LIBC: triple.includes('-musl') ? 'musl' : 'glibc',
1919
})
@@ -51,21 +51,18 @@ async function build(triple: string, file: string) {
5151

5252
await mkdir(path.resolve(__dirname, '../dist'), { recursive: true })
5353

54-
// Build platform binaries and checksum them
54+
// Build platform binaries and checksum them. We use baseline builds for all x64 platforms to ensure
55+
// compatibility with older hardware.
5556
let results = await Promise.all([
5657
build('bun-linux-arm64', './tailwindcss-linux-arm64'),
5758
build('bun-linux-arm64-musl', './tailwindcss-linux-arm64-musl'),
5859

59-
// All Linux x64 builds use `bun-baseline` due to various instruction-related
60-
// errors on some older Server hardware.
6160
build('bun-linux-x64-baseline', './tailwindcss-linux-x64'),
6261
build('bun-linux-x64-musl-baseline', './tailwindcss-linux-x64-musl'),
6362

6463
build('bun-darwin-arm64', './tailwindcss-macos-arm64'),
65-
build('bun-darwin-x64', './tailwindcss-macos-x64'),
64+
build('bun-darwin-x64-baseline', './tailwindcss-macos-x64'),
6665

67-
// The Windows x64 build uses `bun-baseline` instead of the regular bun build.
68-
// This enables support for running inside the ARM emulation mode.
6966
build('bun-windows-x64-baseline', './tailwindcss-windows-x64.exe'),
7067
])
7168

0 commit comments

Comments
 (0)