From 56c7a529fbc7c176a1e69d4d90d3781f3b1c9c2e Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Tue, 27 Jun 2023 16:52:24 +1000 Subject: [PATCH] Install Clang 5 in Cross builder image --- scripts/cross/Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/cross/Dockerfile b/scripts/cross/Dockerfile index 5472b980ba..9456b666ef 100644 --- a/scripts/cross/Dockerfile +++ b/scripts/cross/Dockerfile @@ -9,6 +9,17 @@ RUN apt-get install -y unzip && \ unzip protoc.zip -d /usr && \ chmod +x /usr/bin/protoc -RUN apt-get install -y cmake clang-3.9 +RUN apt-get install -y \ + apt-transport-https \ + ca-certificates \ + gnupg-agent \ + software-properties-common + +RUN curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \ + apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" && \ + apt-get update && \ + apt-get install -y clang-5.0 + +RUN apt-get install -y cmake ENV PROTOC=/usr/bin/protoc