Skip to content

Commit 0e623e7

Browse files
committed
Revert "Revert "build: Update swc_core to v24.0.0" (#79102)"
This reverts commit d13912e.
1 parent d13912e commit 0e623e7

File tree

11 files changed

+547
-218
lines changed

11 files changed

+547
-218
lines changed

.cargo/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,14 @@ rustflags = [
7777

7878
[target.armv7-unknown-linux-gnueabihf]
7979
linker = "arm-linux-gnueabihf-gcc"
80+
81+
[target.wasm32-unknown-unknown]
82+
rustflags = [
83+
"--cfg",
84+
"tokio_unstable",
85+
"-Zshare-generics=y", # make the current crate share its generic instantiations
86+
"-Zthreads=8", # parallel frontend https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
87+
"-Csymbol-mangling-version=v0",
88+
"--cfg",
89+
"getrandom_backend=\"wasm_js\"",
90+
]

.github/workflows/build_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ jobs:
440440
- name: Install Rust
441441
uses: ./.github/actions/setup-rust
442442
with:
443-
targets: wasm32-unknown-unknown
443+
targets: wasm32-wasip1
444444

445445
- name: Install wasm-pack
446446
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ jobs:
471471
skipNativeBuild: 'yes'
472472
skipNativeInstall: 'yes'
473473
afterBuild: |
474-
rustup target add wasm32-unknown-unknown
474+
rustup target add wasm32-wasip1
475475
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
476476
node ./scripts/normalize-version-bump.js
477477
pnpm dlx turbo@${TURBO_VERSION} run build-wasm -- --target nodejs

0 commit comments

Comments
 (0)