Skip to content

Commit 1ab129b

Browse files
Update docker stage for building bdwgc (#314)
* Rename docker stage for building bdwgc to `bdwgc` * Update build stage for bdwgc to Debian 12 * Remove unnecessary packages from bdwgc build step * Update build stage for bdwgc to use clang-16
1 parent 1fa5104 commit 1ab129b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

linux/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM debian:11 AS debian
1+
FROM debian:12 AS bdwgc
22

33
RUN apt-get update \
4-
&& apt-get install -y build-essential libevent-dev libpcre2-dev automake libtool pkg-config git curl llvm-13 clang-13 \
5-
&& (pkg-config || true)
4+
&& apt-get install -y build-essential automake libtool git clang-16
65

76
ARG release
87
ENV CFLAGS="-fPIC -pipe ${release:+-O2}"
9-
ENV CC="clang-13"
8+
ENV CC="clang-16"
109

1110
# Build libgc
1211
ARG gc_version
@@ -75,7 +74,7 @@ RUN git clone https://github.com/crystal-lang/shards \
7574
\
7675
&& ([ "$(ldd bin/shards 2>&1 | wc -l)" -eq "1" ] || { echo 'shards is not statically linked'; ldd bin/shards; exit 1; })
7776

78-
COPY --from=debian /bdwgc/.libs/libgc.a /libgc-debian.a
77+
COPY --from=bdwgc /bdwgc/.libs/libgc.a /libgc-debian.a
7978

8079
ARG package_iteration
8180

0 commit comments

Comments
 (0)