mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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>
This commit is contained in:
parent
f369e22172
commit
503bad4e75
@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Prevent segfault when loaded in a worker thread on Linux ([#17276](https://github.com/tailwindlabs/tailwindcss/pull/17276))
|
||||
- Ensure multiple `--value(…)` or `--modifier(…)` calls don't delete subsequent declarations ([#17273](https://github.com/tailwindlabs/tailwindcss/pull/17273))
|
||||
- Fix class extraction followed by `(` in Slim ([#17278](https://github.com/tailwindlabs/tailwindcss/pull/17278))
|
||||
- Increase Standalone hardware compatibility on macOS x64 builds ([#17267](https://github.com/tailwindlabs/tailwindcss/pull/17267))
|
||||
|
||||
## [4.0.14] - 2025-03-13
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@ async function buildForPlatform(triple: string, outfile: string) {
|
||||
try {
|
||||
let cmd = $`bun build --compile --target=${triple} ./src/index.ts --outfile=${outfile} --env inline`
|
||||
|
||||
// This env var is used by our patched versions of Lightning CSS and Parcel Watcher
|
||||
// to statically bundle the proper binaries for musl vs glibc
|
||||
// This env var is used by our patched versions of Lightning CSS and Parcel Watcher to
|
||||
// statically bundle the proper binaries for musl vs glibc
|
||||
cmd = cmd.env({
|
||||
PLATFORM_LIBC: triple.includes('-musl') ? 'musl' : 'glibc',
|
||||
})
|
||||
@ -51,21 +51,18 @@ async function build(triple: string, file: string) {
|
||||
|
||||
await mkdir(path.resolve(__dirname, '../dist'), { recursive: true })
|
||||
|
||||
// Build platform binaries and checksum them
|
||||
// Build platform binaries and checksum them. We use baseline builds for all x64 platforms to ensure
|
||||
// compatibility with older hardware.
|
||||
let results = await Promise.all([
|
||||
build('bun-linux-arm64', './tailwindcss-linux-arm64'),
|
||||
build('bun-linux-arm64-musl', './tailwindcss-linux-arm64-musl'),
|
||||
|
||||
// All Linux x64 builds use `bun-baseline` due to various instruction-related
|
||||
// errors on some older Server hardware.
|
||||
build('bun-linux-x64-baseline', './tailwindcss-linux-x64'),
|
||||
build('bun-linux-x64-musl-baseline', './tailwindcss-linux-x64-musl'),
|
||||
|
||||
build('bun-darwin-arm64', './tailwindcss-macos-arm64'),
|
||||
build('bun-darwin-x64', './tailwindcss-macos-x64'),
|
||||
build('bun-darwin-x64-baseline', './tailwindcss-macos-x64'),
|
||||
|
||||
// The Windows x64 build uses `bun-baseline` instead of the regular bun build.
|
||||
// This enables support for running inside the ARM emulation mode.
|
||||
build('bun-windows-x64-baseline', './tailwindcss-windows-x64.exe'),
|
||||
])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user