Skip to content

Commit

Permalink
Revert "chore: Update swc" (vercel#41015)
Browse files Browse the repository at this point in the history
It seems we may have regressed on perf in the WASM build as we are
seeing build timeouts in our tests

x-ref:
https://github.com/vercel/next.js/actions/runs/3148769274/jobs/5119807405
x-ref:
https://github.com/vercel/next.js/actions/runs/3148820726/jobs/5119928862

Reverts vercel#40983
  • Loading branch information
ijjk authored and BowlingX committed Oct 5, 2022
1 parent e255453 commit 15b5993
Show file tree
Hide file tree
Showing 15 changed files with 378 additions and 360 deletions.
40 changes: 40 additions & 0 deletions packages/next-swc/.cargo/config.toml
@@ -1,8 +1,24 @@

[build]

rustdocflags = []
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.aarch64-apple-darwin]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
Expand All @@ -11,7 +27,31 @@ rustflags = [
"target-feature=-crt-static",
"-C",
"link-arg=-lgcc",
"-Z",
"new-llvm-pass-manager=no",
]

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.aarch64-linux-android]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.aarch64-pc-windows-msvc]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

[target.wasm32-unknown-unknown]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]

0 comments on commit 15b5993

Please sign in to comment.