File tree 17 files changed +55
-4
lines changed
17 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,11 @@ fn main() {
251
251
} else if target. contains ( "windows-gnu" ) {
252
252
println ! ( "cargo:rustc-link-lib=shell32" ) ;
253
253
println ! ( "cargo:rustc-link-lib=uuid" ) ;
254
- } else if target. contains ( "netbsd" ) || target . contains ( " haiku") || target. contains ( "darwin" ) {
254
+ } else if target. contains ( "haiku" ) || target. contains ( "darwin" ) {
255
255
println ! ( "cargo:rustc-link-lib=z" ) ;
256
+ } else if target. contains ( "netbsd" ) {
257
+ println ! ( "cargo:rustc-link-lib=z" ) ;
258
+ println ! ( "cargo:rustc-link-lib=execinfo" ) ;
256
259
}
257
260
cmd. args ( & components) ;
258
261
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
17
17
xz-utils \
18
18
&& rm -rf /var/lib/apt/lists/*
19
19
20
+ COPY scripts/cmake.sh /scripts/
21
+ RUN /scripts/cmake.sh
22
+
20
23
COPY scripts/sccache.sh /scripts/
21
24
RUN sh /scripts/sccache.sh
22
25
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-
13
13
git \
14
14
libc6-dev \
15
15
libc6-dev-armhf-cross \
16
+ libssl-dev \
16
17
make \
17
18
ninja-build \
18
19
python3 \
@@ -75,6 +76,9 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
75
76
# Source of the file: https://github.com/vfdev-5/qemu-rpi2-vexpress/raw/master/vexpress-v2p-ca15-tc1.dtb
76
77
RUN curl -O https://ci-mirrors.rust-lang.org/rustc/vexpress-v2p-ca15-tc1.dtb
77
78
79
+ COPY scripts/cmake.sh /scripts/
80
+ RUN /scripts/cmake.sh
81
+
78
82
COPY scripts/sccache.sh /scripts/
79
83
RUN sh /scripts/sccache.sh
80
84
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
16
16
libssl-dev \
17
17
pkg-config
18
18
19
+ COPY scripts/cmake.sh /scripts/
20
+ RUN /scripts/cmake.sh
19
21
20
22
COPY scripts/sccache.sh /scripts/
21
23
RUN sh /scripts/sccache.sh
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
19
19
g++ \
20
20
libc6-dev \
21
21
libc6-dev-riscv64-cross \
22
+ libssl-dev \
22
23
make \
23
24
ninja-build \
24
25
patch \
@@ -94,6 +95,9 @@ RUN mkdir build && cd build && \
94
95
WORKDIR /tmp
95
96
RUN rm -rf /tmp/riscv-pk
96
97
98
+ COPY scripts/cmake.sh /scripts/
99
+ RUN /scripts/cmake.sh
100
+
97
101
COPY scripts/sccache.sh /scripts/
98
102
RUN sh /scripts/sccache.sh
99
103
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ COPY host-x86_64/dist-x86_64-linux/shared.sh /tmp/
48
48
COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
49
49
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
50
50
51
+ COPY scripts/cmake.sh /tmp/
52
+ RUN ./cmake.sh
53
+
51
54
# Now build LLVM+Clang, afterwards configuring further compilations to use the
52
55
# clang/clang++ compilers.
53
56
COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ RUN apt-get install -y --no-install-recommends rpm2cpio cpio
14
14
COPY host-x86_64/dist-powerpc64le-linux/shared.sh host-x86_64/dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /tmp/
15
15
RUN ./build-powerpc64le-toolchain.sh
16
16
17
+ COPY scripts/cmake.sh /scripts/
18
+ RUN /scripts/cmake.sh
19
+
17
20
COPY scripts/sccache.sh /scripts/
18
21
RUN sh /scripts/sccache.sh
19
22
Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ ENV SCRIPT \
186
186
python3 ../x.py --stage 2 test --host='' --target $RUN_MAKE_TARGETS tests/run-make && \
187
187
python3 ../x.py dist --host='' --target $TARGETS
188
188
189
+ COPY scripts/cmake.sh /scripts/
190
+ RUN /scripts/cmake.sh
191
+
189
192
# sccache
190
193
COPY scripts/sccache.sh /scripts/
191
194
RUN sh /scripts/sccache.sh
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ RUN /tmp/build-wasi-toolchain.sh
96
96
COPY scripts/freebsd-toolchain.sh /tmp/
97
97
RUN /tmp/freebsd-toolchain.sh i686
98
98
99
+ COPY scripts/cmake.sh /scripts/
100
+ RUN /scripts/cmake.sh
101
+
99
102
COPY scripts/sccache.sh /scripts/
100
103
RUN sh /scripts/sccache.sh
101
104
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ COPY host-x86_64/dist-x86_64-linux/shared.sh /tmp/
48
48
COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
49
49
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
50
50
51
+ # LLVM 17 needs cmake 3.20 or higher.
52
+ COPY scripts/cmake.sh /tmp/
53
+ RUN ./cmake.sh
54
+
51
55
# Now build LLVM+Clang, afterwards configuring further compilations to use the
52
56
# clang/clang++ compilers.
53
57
COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y zlib1g-dev
7
7
COPY host-x86_64/dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/
8
8
RUN /tmp/build-netbsd-toolchain.sh
9
9
10
+ COPY scripts/cmake.sh /scripts/
11
+ RUN /scripts/cmake.sh
12
+
10
13
COPY scripts/sccache.sh /scripts/
11
14
RUN sh /scripts/sccache.sh
12
15
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ COPY scripts/musl-toolchain.sh /build/
37
37
RUN bash musl-toolchain.sh x86_64 && rm -rf build
38
38
WORKDIR /
39
39
40
+ COPY scripts/cmake.sh /scripts/
41
+ RUN /scripts/cmake.sh
42
+
40
43
COPY scripts/sccache.sh /scripts/
41
44
RUN sh /scripts/sccache.sh
42
45
Original file line number Diff line number Diff line change @@ -13,12 +13,16 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
13
13
sudo \
14
14
gdb \
15
15
xz-utils \
16
+ libssl-dev \
16
17
bzip2 \
17
18
&& rm -rf /var/lib/apt/lists/*
18
19
19
20
COPY scripts/emscripten.sh /scripts/
20
21
RUN bash /scripts/emscripten.sh
21
22
23
+ COPY scripts/cmake.sh /scripts/
24
+ RUN /scripts/cmake.sh
25
+
22
26
COPY scripts/sccache.sh /scripts/
23
27
RUN sh /scripts/sccache.sh
24
28
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
26
26
clang \
27
27
&& rm -rf /var/lib/apt/lists/*
28
28
29
+ COPY scripts/cmake.sh /scripts/
30
+ RUN /scripts/cmake.sh
31
+
29
32
COPY scripts/sccache.sh /scripts/
30
33
RUN sh /scripts/sccache.sh
31
34
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
18
18
xz-utils \
19
19
&& rm -rf /var/lib/apt/lists/*
20
20
21
+ COPY scripts/cmake.sh /scripts/
22
+ RUN /scripts/cmake.sh
23
+
21
24
COPY scripts/sccache.sh /scripts/
22
25
RUN sh /scripts/sccache.sh
23
26
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
19
19
mingw-w64 \
20
20
&& rm -rf /var/lib/apt/lists/*
21
21
22
+ COPY scripts/cmake.sh /scripts/
23
+ RUN /scripts/cmake.sh
24
+
22
25
COPY scripts/sccache.sh /scripts/
23
26
RUN sh /scripts/sccache.sh
24
27
Original file line number Diff line number Diff line change 18
18
set -x
19
19
}
20
20
21
- # LLVM 12 requires CMake 3.13.4 or higher.
22
- # This script is not necessary for images using Ubuntu 20 .04 or newer.
23
- CMAKE=3.13.4
21
+ # LLVM 17 requires CMake 3.20 or higher.
22
+ # This script is not necessary for images using Ubuntu 22 .04 or newer.
23
+ CMAKE=3.20.3
24
24
curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE /cmake-$CMAKE .tar.gz | tar xzf -
25
25
26
26
mkdir cmake-build
You can’t perform that action at this time.
0 commit comments