mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 10:52:39 +03:00
Merge pull request #1486 from alexcrichton/fix-raytrace
Fix raytrace example by using an older nightly
This commit is contained in:
commit
7f4f9ce136
@ -170,15 +170,17 @@ jobs:
|
||||
steps:
|
||||
- template: ci/azure-install-rust.yml
|
||||
parameters:
|
||||
toolchain: nightly
|
||||
toolchain: nightly-2019-04-01
|
||||
- template: ci/azure-install-sccache.yml
|
||||
- script: rustup component add rust-src
|
||||
displayName: "install rust-src"
|
||||
- script: |
|
||||
set -e
|
||||
curl -L https://github.com/japaric/xargo/releases/download/v0.3.13/xargo-v0.3.13-x86_64-unknown-linux-musl.tar.gz | tar xzf -
|
||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$PWD"
|
||||
displayName: "install xargo"
|
||||
- script: |
|
||||
set -e
|
||||
sed -i 's/python/#python/' examples/raytrace-parallel/build.sh
|
||||
(cd examples/raytrace-parallel && ./build.sh)
|
||||
cp examples/raytrace-parallel/*.{js,html,wasm} $BUILD_ARTIFACTSTAGINGDIRECTORY
|
||||
|
@ -11,7 +11,7 @@ set -ex
|
||||
# * Next we need to compile everything with the `atomics` feature enabled,
|
||||
# ensuring that LLVM will generate atomic instructions and such.
|
||||
RUSTFLAGS='-C target-feature=+atomics' \
|
||||
rustup run nightly xargo build --target wasm32-unknown-unknown --release
|
||||
xargo build --target wasm32-unknown-unknown --release
|
||||
|
||||
# Threading support is disabled by default in wasm-bindgen, so use an env var
|
||||
# here to turn it on for our bindings generation. Also note that webpack isn't
|
||||
|
Loading…
Reference in New Issue
Block a user