File tree Expand file tree Collapse file tree 4 files changed +18
-23
lines changed
wasm32-unknown-emscripten Expand file tree Collapse file tree 4 files changed +18
-23
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ RUN apt-get install -y --no-install-recommends \
1515 libxml2 \
1616 python3 \
1717 python3-distutils \
18- xz-utils
18+ xz-utils \
19+ bzip2
1920
2021COPY emscripten.sh /
2122RUN bash /emscripten.sh
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ RUN apt-get install -y --no-install-recommends \
2121 cmake \
2222 sudo \
2323 gdb \
24- xz-utils
24+ xz-utils \
25+ bzip2
2526
2627RUN ln -s /usr/bin/python3 /usr/bin/python & \
2728 ln -s /usr/bin/pip3 /usr/bin/pip
Original file line number Diff line number Diff line change 22
33set -ex
44
5- EMSDK_VERSION=1.39.20
6-
7- hide_output () {
8- set +x
9- on_err="
10- echo ERROR: An error was encountered with the build.
11- cat /tmp/build.log
12- exit 1
13- "
14- trap ' $on_err' ERR
15- bash -c " while true; do sleep 30; echo \$ (date) - building ...; done" &
16- PING_LOOP_PID=$!
17- " ${@ } " & > /tmp/build.log
18- trap - ERR
19- kill $PING_LOOP_PID
20- rm -f /tmp/build.log
21- set -x
22- }
5+ # FIXME: 3.1.21 removed a lot of header files (https://github.com/emscripten-core/emscripten/pull/17704).
6+ # We have to tweak libc-test (and deprecate unsupported items, maybe) when updating emsdk.
7+ EMSDK_VERSION=3.1.20
238
249git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
2510cd /emsdk-portable
26- hide_output ./emsdk install " ${EMSDK_VERSION} "
11+ ./emsdk install " ${EMSDK_VERSION} "
2712./emsdk activate " ${EMSDK_VERSION} "
2813
2914# Compile and cache libc
3015# shellcheck disable=SC1091
3116source ./emsdk_env.sh
32- echo " main(){ }" > a.c
17+ echo " int main() {return 0; }" > a.c
3318HOME=/emsdk-portable/ emcc a.c
3419rm -f a.*
3520
Original file line number Diff line number Diff line change @@ -2557,7 +2557,15 @@ fn test_emscripten(target: &str) {
25572557 field == "_pad2" ||
25582558 field == "ssi_syscall" ||
25592559 field == "ssi_call_addr" ||
2560- field == "ssi_arch" ) )
2560+ field == "ssi_arch" ) ) ||
2561+ // FIXME: After musl 1.1.24, it have only one field `sched_priority`,
2562+ // while other fields become reserved.
2563+ ( struct_ == "sched_param" && [
2564+ "sched_ss_low_priority" ,
2565+ "sched_ss_repl_period" ,
2566+ "sched_ss_init_budget" ,
2567+ "sched_ss_max_repl" ,
2568+ ] . contains ( & field) )
25612569 } ) ;
25622570
25632571 // FIXME: test linux like
You can’t perform that action at this time.
0 commit comments