Skip to content

Commit 23723e1

Browse files
Statically link Visual Studio redistributables on Windows builds (#16602)
This PR statically links the C runtime on Windows builds so we no longer require installing Visual Studio redistributables. ## Test plan Relying on CI here to not break anything for Windows.
1 parent ec1d7d4 commit 23723e1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Ensure drop shadow utilities don't inherit unexpectedly ([#16471](https://github.com/tailwindlabs/tailwindcss/pull/16471))
2222
- Export backwards compatible config and plugin types from `tailwindcss/plugin` ([#16505](https://github.com/tailwindlabs/tailwindcss/pull/16505))
2323
- Ensure JavaScript plugins that emit nested rules referencing to the utility name work as expected ([#16539](https://github.com/tailwindlabs/tailwindcss/pull/16539))
24+
- Statically link Visual Studio redistributables on Windows builds ([#16602](https://github.com/tailwindlabs/tailwindcss/pull/16602))
2425
- Ensure that Next.js splat routes are automatically scanned for classes ([#16457](https://github.com/tailwindlabs/tailwindcss/pull/16457))
2526
- Pin exact versions of `tailwindcss` and `@tailwindcss/*` ([#16623](https://github.com/tailwindlabs/tailwindcss/pull/16623))
2627
- Upgrade: Report errors when updating dependencies ([#16504](https://github.com/tailwindlabs/tailwindcss/pull/16504))

crates/node/.cargo/config.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ linker = "aarch64-linux-gnu-gcc"
44
linker = "aarch64-linux-musl-gcc"
55
rustflags = ["-C", "target-feature=-crt-static"]
66
[target.armv7-unknown-linux-gnueabihf]
7-
linker = "arm-linux-gnueabihf-gcc"
7+
linker = "arm-linux-gnueabihf-gcc"
8+
# Statically link Visual Studio redistributables on Windows builds
9+
[target.x86_64-pc-windows-msvc]
10+
rustflags = ["-C", "target-feature=+crt-static"]
11+
[target.aarch64-pc-windows-msvc]
12+
rustflags = ["-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)