[libcxx-commits] [libcxx] 15df9c9 - [libc++][ci] Clean up the Docker image

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 12 14:07:16 PDT 2021


Author: Louis Dionne
Date: 2021-07-12T17:04:25-04:00
New Revision: 15df9c9881aebf58dd54fb4e8dd1c1a77684fd7f

URL: https://github.com/llvm/llvm-project/commit/15df9c9881aebf58dd54fb4e8dd1c1a77684fd7f
DIFF: https://github.com/llvm/llvm-project/commit/15df9c9881aebf58dd54fb4e8dd1c1a77684fd7f.diff

LOG: [libc++][ci] Clean up the Docker image

- Remove symlinks that are not used anymore
- Stop installing GCC 10, which isn't tested anymore

Added: 
    

Modified: 
    libcxx/utils/ci/Dockerfile

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/Dockerfile b/libcxx/utils/ci/Dockerfile
index a1b91652e895..276e5a5cf275 100644
--- a/libcxx/utils/ci/Dockerfile
+++ b/libcxx/utils/ci/Dockerfile
@@ -51,12 +51,6 @@ RUN bash /tmp/llvm.sh $(($LLVM_LATEST_VERSION + 1)) # current ToT
 RUN ln -fs /usr/bin/clang++-$(($LLVM_LATEST_VERSION + 1)) /usr/bin/c++ && [ -e $(readlink /usr/bin/c++) ]
 RUN ln -fs /usr/bin/clang-$(($LLVM_LATEST_VERSION + 1)) /usr/bin/cc && [ -e $(readlink /usr/bin/cc) ]
 
-# Temporarily keep the clang++ and clang++-tot symlinks around for backwards compatibility with builders
-RUN ln -s /usr/bin/clang++-$LLVM_LATEST_VERSION /usr/bin/clang++ && [ -e $(readlink /usr/bin/clang++) ]
-RUN ln -s /usr/bin/clang-$LLVM_LATEST_VERSION /usr/bin/clang && [ -e $(readlink /usr/bin/clang) ]
-RUN ln -s /usr/bin/clang++-$(($LLVM_LATEST_VERSION + 1)) /usr/bin/clang++-tot && [ -e $(readlink /usr/bin/clang++-tot) ]
-RUN ln -s /usr/bin/clang-$(($LLVM_LATEST_VERSION + 1)) /usr/bin/clang-tot && [ -e $(readlink /usr/bin/clang-tot) ]
-
 # Install clang-format
 RUN apt-get install -y clang-format-$LLVM_LATEST_VERSION
 RUN ln -s /usr/bin/clang-format-$LLVM_LATEST_VERSION /usr/bin/clang-format && [ -e $(readlink /usr/bin/clang-format) ]
@@ -67,9 +61,6 @@ ENV GCC_LATEST_VERSION=11
 RUN add-apt-repository ppa:ubuntu-toolchain-r/test
 RUN apt-get update && apt install -y gcc-$GCC_LATEST_VERSION g++-$GCC_LATEST_VERSION
 
-# Temporarily keep installing GCC 10 for backwards compatibility with build bots
-RUN apt-get update && apt install -y gcc-10 g++-10
-
 # Install a recent CMake
 RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.sh -O /tmp/install-cmake.sh
 RUN bash /tmp/install-cmake.sh --prefix=/usr --exclude-subdir --skip-license


        


More information about the libcxx-commits mailing list