diff --git a/CHANGELOG.md b/CHANGELOG.md index 2451d937b..7cd241db2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/@tailwindcss-standalone/scripts/build.ts b/packages/@tailwindcss-standalone/scripts/build.ts index c64d77625..f37bdfd20 100644 --- a/packages/@tailwindcss-standalone/scripts/build.ts +++ b/packages/@tailwindcss-standalone/scripts/build.ts @@ -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'), ])