Skip to content

Commit 7695c76

Browse files
Rebuild rust-nightly (emscripten-forge#4848)
1 parent 05f36cc commit 7695c76

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

recipes/recipes/rust-nightly/activate.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ export PYO3_CROSS_PYTHON_VERSION=$PY_VER
2121
export PYO3_CROSS_LIB_DIR=$PREFIX/lib
2222
export PYO3_CROSS_INCLUDE_DIR=$PREFIX/include
2323

24-
# To enable wasm-exceptions
25-
export RUSTFLAGS="-Z emscripten-wasm-eh -C panic=abort"
24+
# To enable wasm-exceptions set RUSTFLAGS=$RUST_WASM_EXCEPTIONS
25+
# Not all packages require this and sometimes it causes problems
26+
export RUST_WASM_EXCEPTIONS="-Z emscripten-wasm-eh -C panic=abort"
2627

2728
export CARGO_BUILD_TARGET="wasm32-unknown-emscripten"
2829
export LDFLAGS="$LDFLAGS -L${PREFIX}/lib"
30+
31+
source $CARGO_HOME/env
32+
rustup default nightly
33+
34+
echo "[rust-nightly] Activation complete."

recipes/recipes/rust-nightly/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package:
77
version: ${{ version }}
88

99
build:
10-
number: 0
10+
number: 1
1111

1212
requirements:
1313
build:

0 commit comments

Comments
 (0)