File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
wasm32-unknown-emscripten
src/unix/linux_like/emscripten Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ RUN apt-get update && \
7
7
gcc \
8
8
git \
9
9
libc6-dev \
10
+ libxml2 \
10
11
python \
11
12
xz-utils
12
13
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ RUN apt-get update && \
10
10
gcc \
11
11
git \
12
12
libc6-dev \
13
+ libxml2 \
13
14
python \
14
15
cmake \
15
16
sudo \
Original file line number Diff line number Diff line change @@ -28,21 +28,18 @@ exit 1
28
28
set -x
29
29
}
30
30
31
- cd /
32
- curl --retry 5 -L https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
33
- tar -xz
34
-
31
+ git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
35
32
cd /emsdk-portable
36
- ./emsdk update
37
- hide_output ./emsdk install sdk-1.38.15-64bit
38
- ./emsdk activate sdk-1.38.15-64bit
33
+ # TODO: switch to an upstream install once
34
+ # https://github.com/rust-lang/rust/pull/63649 lands
35
+ hide_output ./emsdk install 1.38.42
36
+ ./emsdk activate 1.38.42
39
37
40
38
# Compile and cache libc
41
39
# shellcheck disable=SC1091
42
40
source ./emsdk_env.sh
43
41
echo " main(){}" > a.c
44
42
HOME=/emsdk-portable/ emcc a.c
45
- HOME=/emsdk-portable/ emcc -s BINARYEN=1 a.c
46
43
rm -f a.*
47
44
48
45
# Make emsdk usable by any user
@@ -53,4 +50,3 @@ chmod a+rxw -R /emsdk-portable
53
50
cd /
54
51
curl --retry 5 -L https://nodejs.org/dist/v12.3.1/node-v12.3.1-linux-x64.tar.xz | \
55
52
tar -xJ
56
-
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ pub type dev_t = u32;
5
5
pub type socklen_t = u32 ;
6
6
pub type pthread_t = c_ulong ;
7
7
pub type mode_t = u32 ;
8
- pub type ino64_t = u32 ;
9
- pub type off64_t = i32 ;
8
+ pub type ino64_t = u64 ;
9
+ pub type off64_t = i64 ;
10
10
pub type blkcnt64_t = i32 ;
11
11
pub type rlim64_t = u64 ;
12
12
pub type shmatt_t = :: c_ulong ;
@@ -16,14 +16,14 @@ pub type msglen_t = ::c_ulong;
16
16
pub type nfds_t = :: c_ulong ;
17
17
pub type nl_item = :: c_int ;
18
18
pub type idtype_t = :: c_uint ;
19
- pub type loff_t = i32 ;
19
+ pub type loff_t = i64 ;
20
20
pub type pthread_key_t = :: c_uint ;
21
21
22
22
pub type clock_t = c_long ;
23
23
pub type time_t = c_long ;
24
24
pub type suseconds_t = c_long ;
25
- pub type ino_t = u32 ;
26
- pub type off_t = i32 ;
25
+ pub type ino_t = u64 ;
26
+ pub type off_t = i64 ;
27
27
pub type blkcnt_t = i32 ;
28
28
29
29
pub type blksize_t = c_long ;
You can’t perform that action at this time.
0 commit comments