Skip to content

Commit ac6ec25

Browse files
authored
Turbopack: Use workaround for rustc miscompilation bug on macos intel (#81950)
Uses hyperium/hyper#3908 cherry-picked on top of hyper v1.6.0 to work around hyperium/hyper#3902 and rust-lang/rust#140686 - Git Branch: https://github.com/bgw/hyper-rs/commits/v1.6.0-with-macos-intel-miscompilation-workaround/ - Cherry-picked commit: bgw/hyper-rs@ab35449 Fixes #81697 The proper fix is to update the rustc toolchain, but since we use nightly toolchains, this is too risky for a minor patch release. So this applies the workaround instead. ## Test Plan Force using x86-64 under Rosetta by downloading a "standalone" version of nodejs and adding it to the front of the `PATH` with: ``` export PATH=/Users/bgw/Downloads/node-v22.17.1-darwin-x64/bin/:"$PATH" ``` Use `create-next-app` to create a new app. This fetching Geist by default. Run `pnpm dev`, see the 404 errors. Modify the `package.json` to use this preview version: ``` "next": "https://vercel-packages.vercel.app/next/commits/16196a3d2d7df65222727619e8db993336cf7aff/next" ``` Run `pnpm i && pnpm dev`, see that the 404s are solved!
1 parent 9672bdc commit ac6ec25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ vergen-gitcl = { version = "1.0.8", features = [
438438
webbrowser = "0.8.7"
439439

440440
[patch.crates-io]
441-
mdxjs = { git = "https://github.com/kdy1/mdxjs-rs.git", branch = "swc-core-30" }
441+
hyper = { git = "https://github.com/bgw/hyper-rs.git", branch = "v1.6.0-with-macos-intel-miscompilation-workaround" }
442442
lightningcss = { git = "https://github.com/parcel-bundler/lightningcss.git", branch = "mischnic/bump-browserslist" }
443+
mdxjs = { git = "https://github.com/kdy1/mdxjs-rs.git", branch = "swc-core-30" }
443444
parcel_selectors = { git = "https://github.com/parcel-bundler/lightningcss.git", branch = "mischnic/bump-browserslist" }

0 commit comments

Comments
 (0)