Skip to content

Commit 1e949af

Browse files
Standalone: Use bun baseline builds for Linux (#16244)
Closes #15181 This PR changes the Standalone builds to use bun baseline instead. This compiles to a reduced instruction set and should work around the compatibility issues experienced across older server hardware. ## Test plan See #15181 (comment) Also tested it with the repor from @npezza93 and it now works locally as well with a Docker build.
1 parent d566dbd commit 1e949af

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Fix missing `@keyframes` definition ([#16237](https://github.com/tailwindlabs/tailwindcss/pull/16237))
1616
- Vite: Skip parsing stylesheets with the `?commonjs-proxy` flag ([#16238](https://github.com/tailwindlabs/tailwindcss/pull/16238))
1717
- Fix `order-first` and `order-last` for Firefox ([#16266](https://github.com/tailwindlabs/tailwindcss/pull/16266))
18+
- Fix support for older instruction sets on Linux x64 builds of the standalone CLI ([#16244](https://github.com/tailwindlabs/tailwindcss/pull/16244))
1819
- Ensure `NODE_PATH` is respected when resolving JavaScript and CSS files ([#16274](https://github.com/tailwindlabs/tailwindcss/pull/16274))
1920
- Ensure Node addons are packaged correctly with FreeBSD builds ([#16277](https://github.com/tailwindlabs/tailwindcss/pull/16277))
2021

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,18 @@ await mkdir(path.resolve(__dirname, '../dist'), { recursive: true })
5555
let results = await Promise.all([
5656
build('bun-linux-arm64', './tailwindcss-linux-arm64'),
5757
build('bun-linux-arm64-musl', './tailwindcss-linux-arm64-musl'),
58-
build('bun-linux-x64', './tailwindcss-linux-x64'),
59-
build('bun-linux-x64-musl', './tailwindcss-linux-x64-musl'),
60-
// build('linux-armv7', 'tailwindcss-linux-armv7'),
58+
59+
// All Linux x64 builds use `bun-baseline` due to various instruction-related
60+
// errors on some older Server hardware.
61+
build('bun-linux-x64-baseline', './tailwindcss-linux-x64'),
62+
build('bun-linux-x64-musl-baseline', './tailwindcss-linux-x64-musl'),
63+
6164
build('bun-darwin-arm64', './tailwindcss-macos-arm64'),
6265
build('bun-darwin-x64', './tailwindcss-macos-x64'),
66+
6367
// The Windows x64 build uses `bun-baseline` instead of the regular bun build.
6468
// This enables support for running inside the ARM emulation mode.
6569
build('bun-windows-x64-baseline', './tailwindcss-windows-x64.exe'),
66-
// buildForPlatform('win32-arm64', 'tailwindcss-windows-arm64'),
6770
])
6871

6972
// Write the checksums to a file

0 commit comments

Comments
 (0)