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 \
15
15
libxml2 \
16
16
python3 \
17
17
python3-distutils \
18
- xz-utils
18
+ xz-utils \
19
+ bzip2
19
20
20
21
COPY emscripten.sh /
21
22
RUN 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 \
21
21
cmake \
22
22
sudo \
23
23
gdb \
24
- xz-utils
24
+ xz-utils \
25
+ bzip2
25
26
26
27
RUN ln -s /usr/bin/python3 /usr/bin/python & \
27
28
ln -s /usr/bin/pip3 /usr/bin/pip
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
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
23
8
24
9
git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
25
10
cd /emsdk-portable
26
- hide_output ./emsdk install " ${EMSDK_VERSION} "
11
+ ./emsdk install " ${EMSDK_VERSION} "
27
12
./emsdk activate " ${EMSDK_VERSION} "
28
13
29
14
# Compile and cache libc
30
15
# shellcheck disable=SC1091
31
16
source ./emsdk_env.sh
32
- echo " main(){ }" > a.c
17
+ echo " int main() {return 0; }" > a.c
33
18
HOME=/emsdk-portable/ emcc a.c
34
19
rm -f a.*
35
20
Original file line number Diff line number Diff line change @@ -2557,7 +2557,15 @@ fn test_emscripten(target: &str) {
2557
2557
field == "_pad2" ||
2558
2558
field == "ssi_syscall" ||
2559
2559
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) )
2561
2569
} ) ;
2562
2570
2563
2571
// FIXME: test linux like
You can’t perform that action at this time.
0 commit comments