-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #65251 - tlively:emscripten-upstream-upgrade, r=tlively
Upgrade Emscripten targets to use upstream LLVM backend - Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649. r? @alexcrichton
- Loading branch information
Showing
148 changed files
with
438 additions
and
603 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
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
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 was deleted.
Oops, something went wrong.
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,41 @@ | ||
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 \ | ||
bzip2 | ||
|
||
COPY scripts/emscripten.sh /scripts/ | ||
RUN bash /scripts/emscripten.sh | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
ENV PATH=$PATH:/emsdk-portable | ||
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/ | ||
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/ | ||
ENV BINARYEN_ROOT=/emsdk-portable/upstream/ | ||
|
||
ENV TARGETS=asmjs-unknown-emscripten | ||
|
||
# Use -O1 optimizations in the link step to reduce time spent optimizing JS. | ||
ENV EMCC_CFLAGS=-O1 | ||
|
||
# Emscripten installation is user-specific | ||
ENV NO_CHANGE_USER=1 | ||
|
||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS | ||
|
||
# This is almost identical to the wasm32-unknown-emscripten target, so | ||
# running with assertions again is not useful | ||
ENV NO_DEBUG_ASSERTIONS=1 | ||
ENV NO_LLVM_ASSERTIONS=1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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 \ | ||
bzip2 | ||
|
||
COPY scripts/emscripten.sh /scripts/ | ||
RUN bash /scripts/emscripten.sh | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
ENV PATH=$PATH:/emsdk-portable | ||
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/ | ||
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/ | ||
ENV BINARYEN_ROOT=/emsdk-portable/upstream/ | ||
|
||
ENV TARGETS=wasm32-unknown-emscripten | ||
|
||
# Use -O1 optimizations in the link step to reduce time spent optimizing. | ||
ENV EMCC_CFLAGS=-O1 | ||
|
||
# Emscripten installation is user-specific | ||
ENV NO_CHANGE_USER=1 | ||
|
||
# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476 | ||
# is picked up by CI | ||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS \ | ||
--exclude src/libcore \ | ||
--exclude src/liballoc \ | ||
--exclude src/libproc_macro \ | ||
--exclude src/libstd \ | ||
--exclude src/libterm \ | ||
--exclude src/libtest |
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
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
Oops, something went wrong.