File tree Expand file tree Collapse file tree 17 files changed +55
-4
lines changed Expand file tree Collapse file tree 17 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,11 @@ fn main() {
251251 } else if target. contains ( "windows-gnu" ) {
252252 println ! ( "cargo:rustc-link-lib=shell32" ) ;
253253 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" ) {
255255 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" ) ;
256259 }
257260 cmd. args ( & components) ;
258261
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
1717 xz-utils \
1818 && rm -rf /var/lib/apt/lists/*
1919
20+ COPY scripts/cmake.sh /scripts/
21+ RUN /scripts/cmake.sh
22+
2023COPY scripts/sccache.sh /scripts/
2124RUN sh /scripts/sccache.sh
2225
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-
1313 git \
1414 libc6-dev \
1515 libc6-dev-armhf-cross \
16+ libssl-dev \
1617 make \
1718 ninja-build \
1819 python3 \
@@ -75,6 +76,9 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
7576# Source of the file: https://github.com/vfdev-5/qemu-rpi2-vexpress/raw/master/vexpress-v2p-ca15-tc1.dtb
7677RUN curl -O https://ci-mirrors.rust-lang.org/rustc/vexpress-v2p-ca15-tc1.dtb
7778
79+ COPY scripts/cmake.sh /scripts/
80+ RUN /scripts/cmake.sh
81+
7882COPY scripts/sccache.sh /scripts/
7983RUN sh /scripts/sccache.sh
8084
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 \
1616 libssl-dev \
1717 pkg-config
1818
19+ COPY scripts/cmake.sh /scripts/
20+ RUN /scripts/cmake.sh
1921
2022COPY scripts/sccache.sh /scripts/
2123RUN 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 \
1919 g++ \
2020 libc6-dev \
2121 libc6-dev-riscv64-cross \
22+ libssl-dev \
2223 make \
2324 ninja-build \
2425 patch \
@@ -94,6 +95,9 @@ RUN mkdir build && cd build && \
9495WORKDIR /tmp
9596RUN rm -rf /tmp/riscv-pk
9697
98+ COPY scripts/cmake.sh /scripts/
99+ RUN /scripts/cmake.sh
100+
97101COPY scripts/sccache.sh /scripts/
98102RUN sh /scripts/sccache.sh
99103
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/
4848COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
4949RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
5050
51+ COPY scripts/cmake.sh /tmp/
52+ RUN ./cmake.sh
53+
5154# Now build LLVM+Clang, afterwards configuring further compilations to use the
5255# clang/clang++ compilers.
5356COPY 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
1414COPY host-x86_64/dist-powerpc64le-linux/shared.sh host-x86_64/dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /tmp/
1515RUN ./build-powerpc64le-toolchain.sh
1616
17+ COPY scripts/cmake.sh /scripts/
18+ RUN /scripts/cmake.sh
19+
1720COPY scripts/sccache.sh /scripts/
1821RUN sh /scripts/sccache.sh
1922
Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ ENV SCRIPT \
186186 python3 ../x.py --stage 2 test --host='' --target $RUN_MAKE_TARGETS tests/run-make && \
187187 python3 ../x.py dist --host='' --target $TARGETS
188188
189+ COPY scripts/cmake.sh /scripts/
190+ RUN /scripts/cmake.sh
191+
189192# sccache
190193COPY scripts/sccache.sh /scripts/
191194RUN sh /scripts/sccache.sh
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ RUN /tmp/build-wasi-toolchain.sh
9696COPY scripts/freebsd-toolchain.sh /tmp/
9797RUN /tmp/freebsd-toolchain.sh i686
9898
99+ COPY scripts/cmake.sh /scripts/
100+ RUN /scripts/cmake.sh
101+
99102COPY scripts/sccache.sh /scripts/
100103RUN sh /scripts/sccache.sh
101104
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/
4848COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
4949RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
5050
51+ # LLVM 17 needs cmake 3.20 or higher.
52+ COPY scripts/cmake.sh /tmp/
53+ RUN ./cmake.sh
54+
5155# Now build LLVM+Clang, afterwards configuring further compilations to use the
5256# clang/clang++ compilers.
5357COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
You can’t perform that action at this time.
0 commit comments