Skip to content

Commit a1d7578

Browse files
committed
Try to update emsdk version
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent 1f1527e commit a1d7578

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

ci/docker/asmjs-unknown-emscripten/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

2021
COPY emscripten.sh /
2122
RUN bash /emscripten.sh

ci/docker/wasm32-unknown-emscripten/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

2627
RUN ln -s /usr/bin/python3 /usr/bin/python & \
2728
ln -s /usr/bin/pip3 /usr/bin/pip

ci/emscripten.sh

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,19 @@
22

33
set -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

249
git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
2510
cd /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
3116
source ./emsdk_env.sh
32-
echo "main(){}" > a.c
17+
echo "int main() {return 0;}" > a.c
3318
HOME=/emsdk-portable/ emcc a.c
3419
rm -f a.*
3520

libc-test/build.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)