-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #43175 - tlively:wasm-split-bots, r=alexcrichton
Split old and experimental wasm builders #42784 introduced configuration errors in the wasm builder by mixing different versions of the tools. This PR separates the wasm32-unknown-emscripten and wasm32-experimental-emscripten builders to resolve these errors.
- Loading branch information
Showing
4 changed files
with
71 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
make \ | ||
file \ | ||
curl \ | ||
ca-certificates \ | ||
python \ | ||
git \ | ||
cmake \ | ||
sudo \ | ||
gdb \ | ||
xz-utils \ | ||
jq \ | ||
bzip2 | ||
|
||
# dumb-init | ||
COPY scripts/dumb-init.sh /scripts/ | ||
RUN sh /scripts/dumb-init.sh | ||
|
||
# emscripten | ||
COPY scripts/emscripten-wasm.sh /scripts/ | ||
COPY disabled/wasm32-exp/node.sh /usr/local/bin/node | ||
RUN bash /scripts/emscripten-wasm.sh | ||
|
||
# cache | ||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
# env | ||
ENV PATH=/wasm-install/emscripten:/wasm-install/bin:$PATH | ||
ENV EM_CONFIG=/root/.emscripten | ||
|
||
ENV TARGETS=wasm32-experimental-emscripten | ||
|
||
ENV RUST_CONFIGURE_ARGS --target=$TARGETS --experimental-targets=WebAssembly | ||
|
||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS | ||
|
||
# init | ||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright 2017 The Rust Project Developers. See the COPYRIGHT | ||
# file at the top-level directory of this distribution and at | ||
# http://rust-lang.org/COPYRIGHT. | ||
# | ||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
# option. This file may not be copied, modified, or distributed | ||
# except according to those terms. | ||
|
||
path="$(dirname $1)" | ||
file="$(basename $1)" | ||
|
||
shift | ||
|
||
cd "$path" | ||
exec /node-v8.0.0-linux-x64/bin/node "$file" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters