File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ ENV PATH=$PATH:/emsdk-portable
24
24
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
25
25
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
26
26
ENV BINARYEN_ROOT=/emsdk-portable/upstream/
27
- ENV EM_CONFIG=/emsdk-portable/.emscripten
28
27
29
28
ENV TARGETS=asmjs-unknown-emscripten
30
29
31
30
# Use -O1 optimizations in the link step to reduce time spent optimizing JS.
32
31
ENV EMCC_CFLAGS=-O1
33
32
33
+ # Emscripten installation is user-specific
34
+ ENV NO_CHANGE_USER=1
35
+
34
36
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
35
37
36
38
# This is almost identical to the wasm32-unknown-emscripten target, so
Original file line number Diff line number Diff line change @@ -21,13 +21,3 @@ git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
21
21
cd /emsdk-portable
22
22
hide_output ./emsdk install 1.38.46-upstream
23
23
./emsdk activate 1.38.46-upstream
24
-
25
- # Compile and cache libc
26
- source ./emsdk_env.sh
27
- echo " main(){}" > a.c
28
- HOME=/emsdk-portable/ emcc a.c
29
- rm -f a.*
30
-
31
- # Make emsdk usable by any user
32
- cp /root/.emscripten /emsdk-portable
33
- chmod a+rxw -R /emsdk-portable
Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ ENV PATH=$PATH:/emsdk-portable
24
24
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
25
25
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
26
26
ENV BINARYEN_ROOT=/emsdk-portable/upstream/
27
- ENV EM_CONFIG=/emsdk-portable/.emscripten
28
27
29
28
ENV TARGETS=wasm32-unknown-emscripten
30
29
31
30
# Use -O1 optimizations in the link step to reduce time spent optimizing.
32
31
ENV EMCC_CFLAGS=-O1
33
32
33
+ # Emscripten installation is user-specific
34
+ ENV NO_CHANGE_USER=1
35
+
34
36
# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476
35
37
# is picked up by CI
36
38
ENV SCRIPT python2.7 ../x.py test --target $TARGETS \
You can’t perform that action at this time.
0 commit comments