Skip to content

Commit

Permalink
Use the version of gn that works on old Apline (#2711) (#2712)
Browse files Browse the repository at this point in the history
The new versions of gn require C++20 which is not easily available on the very old Alpine.

(cherry picked from commit 9274aee)

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
  • Loading branch information
github-actions[bot] and mattleibow committed Jan 12, 2024
1 parent 809440a commit 65e4a72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/Docker/alpine/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ FROM amd64/alpine:3.9
RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.16/main -u alpine-keys --allow-untrusted
RUN apk add --no-cache bash curl wget python python3 git build-base ninja fontconfig-dev libintl clang

# use the specific commit before the tool switched to C++20 which is too new for this old alpine
RUN git clone https://gn.googlesource.com/gn /usr/share/gn \
&& cd /usr/share/gn \
&& git checkout d4be45bb28fbfc16a41a1e02c86137df6815f2dd \
&& python build/gen.py --allow-warning \
&& ninja -C out \
&& /usr/share/gn/out/gn --version
Expand Down

0 comments on commit 65e4a72

Please sign in to comment.