Skip to content

Commit

Permalink
[libc++] Update compiler images and more docker cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWF committed Feb 27, 2020
1 parent 3678938 commit 0b8585e
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 11 deletions.
Expand Up @@ -13,45 +13,52 @@ services:
build:
<<: *build-gcc
args:
branch: gcc-4_8_5-release
branch: releases/gcc-4.8.5
install_prefix: /opt/gcc-4.8.5
cherry_pick: ec1cc0263f156f70693a62cf17b254a0029f4852
image: ericwf/compiler:gcc-4.8.5
gcc-4.9.4:
build:
<<: *build-gcc
args:
branch: gcc-4_9_4-release
branch: releases/gcc-4.9.4
install_prefix: /opt/gcc-4.9.4
image: ericwf/compiler:gcc-4.9.4
gcc-5:
build:
<<: *build-gcc
args:
branch: gcc-5_5_0-release
branch: releases/gcc-5.5.0
install_prefix: /opt/gcc-5
image: ericwf/compiler:gcc-5
gcc-6:
build:
<<: *build-gcc
args:
branch: gcc-6_5_0-release
branch: releases/gcc-6.5.0
install_prefix: /opt/gcc-6
image: ericwf/compiler:gcc-6
gcc-7:
build:
<<: *build-gcc
args:
branch: gcc-7_4_0-release
branch: releases/gcc-7.4.0
install_prefix: /opt/gcc-7
image: ericwf/compiler:gcc-7
gcc-8:
build:
<<: *build-gcc
args:
branch: gcc-8_2_0-release
branch: releases/gcc-8.2.0
install_prefix: /opt/gcc-8
image: ericwf/compiler:gcc-8
gcc-9:
build:
<<: *build-gcc
args:
branch: releases/gcc-9.2.0
install_prefix: /opt/gcc-9
image: ericwf/compiler:gcc-9
# Add LLVM compilers
llvm-3.6:
build:
Expand Down Expand Up @@ -116,18 +123,27 @@ services:
branch: release/8.x
install_prefix: /opt/llvm-8
image: ericwf/compiler:llvm-8
llvm-9:
build:
<<: *build-clang
args:
branch: release/9.x
install_prefix: /opt/llvm-9
image: ericwf/compiler:llvm-9
gcc-tot:
build:
<<: *build-gcc
args:
branch: master
cache_date: feb-27
install_prefix: /opt/gcc-tot
image: ericwf/compiler:gcc-tot
llvm-tot:
build:
<<: *build-clang
args:
branch: master
cache_date: feb-27
install_prefix: /opt/llvm-tot
image: ericwf/compiler:llvm-tot
compiler-zoo:
Expand All @@ -143,6 +159,7 @@ services:
- gcc-6
- gcc-7
- gcc-8
- gcc-9
- gcc-tot
- llvm-3.6
- llvm-3.7
Expand All @@ -153,4 +170,5 @@ services:
- llvm-6
- llvm-7
- llvm-8
- llvm-9
- llvm-tot
1 change: 1 addition & 0 deletions libcxx/utils/docker/debian9/compilers/clang.Dockerfile
Expand Up @@ -12,6 +12,7 @@ LABEL maintainer "libc++ Developers"

ARG install_prefix
ARG branch
ARG cache_date=stable

ADD scripts/build_llvm_version.sh /tmp/
RUN /tmp/build_llvm_version.sh --install "$install_prefix" --branch "$branch" \
Expand Down
2 changes: 2 additions & 0 deletions libcxx/utils/docker/debian9/compilers/compiler-zoo.Dockerfile
Expand Up @@ -19,6 +19,7 @@ COPY --from=ericwf/compiler:gcc-5 /opt/gcc-5 /opt/gcc-5
COPY --from=ericwf/compiler:gcc-6 /opt/gcc-6 /opt/gcc-6
COPY --from=ericwf/compiler:gcc-7 /opt/gcc-7 /opt/gcc-7
COPY --from=ericwf/compiler:gcc-8 /opt/gcc-8 /opt/gcc-8
COPY --from=ericwf/compiler:gcc-9 /opt/gcc-9 /opt/gcc-9
COPY --from=ericwf/compiler:gcc-tot /opt/gcc-tot /opt/gcc-tot

COPY --from=ericwf/compiler:llvm-3.6 /opt/llvm-3.6 /opt/llvm-3.6
Expand All @@ -30,6 +31,7 @@ COPY --from=ericwf/compiler:llvm-5 /opt/llvm-5 /opt/llvm-5
COPY --from=ericwf/compiler:llvm-6 /opt/llvm-6 /opt/llvm-6
COPY --from=ericwf/compiler:llvm-7 /opt/llvm-7 /opt/llvm-7
COPY --from=ericwf/compiler:llvm-8 /opt/llvm-8 /opt/llvm-8
COPY --from=ericwf/compiler:llvm-9 /opt/llvm-9 /opt/llvm-9
COPY --from=ericwf/compiler:llvm-tot /opt/llvm-tot /opt/llvm-tot


1 change: 1 addition & 0 deletions libcxx/utils/docker/debian9/compilers/gcc.Dockerfile
Expand Up @@ -14,6 +14,7 @@ LABEL maintainer "libc++ Developers"
ARG branch
ARG cherry_pick=""
ARG install_prefix
ARG cache_date=stable

ADD scripts/build_gcc_version.sh /tmp/
RUN /tmp/build_gcc_version.sh \
Expand Down
4 changes: 2 additions & 2 deletions libcxx/utils/docker/debian9/docker-compose.yml
Expand Up @@ -5,10 +5,10 @@ services:
context: .
dockerfile: llvm-builder-base.Dockerfile
target: llvm-builder-base
image: ericwf/llvm-builder-base:new
image: ericwf/llvm-builder-base:latest
llvm-buildbot-worker:
build:
context: .
dockerfile: llvm-buildbot-worker.Dockerfile
target: llvm-buildbot-worker
image: ericwf/llvm-buildbot-worker:new
image: ericwf/llvm-buildbot-worker:latest
5 changes: 3 additions & 2 deletions libcxx/utils/docker/debian9/scripts/build_gcc_version.sh
Expand Up @@ -79,7 +79,8 @@ git clone --branch "$GCC_BRANCH" --single-branch --depth=1 git://gcc.gnu.org/git

pushd "$GCC_SOURCE_DIR"
if [ "$CHERRY_PICK" != "" ]; then
git fetch origin trunk --unshallow # Urg, we have to get the entire history. This will take a while.
git checkout -b cherry-pick-branch
git fetch origin master --unshallow # Urg, we have to get the entire history. This will take a while.
git cherry-pick --no-commit -X theirs "$CHERRY_PICK"
fi
./contrib/download_prerequisites
Expand All @@ -105,4 +106,4 @@ popd
# Cleanup.
rm -rf "$TMP_ROOT"

echo "Done"
echo "Done"
Expand Up @@ -20,7 +20,7 @@ Available options:
EOF
}

VERSION="10"
VERSION="11"

while [[ $# -gt 0 ]]; do
case "$1" in
Expand Down

0 comments on commit 0b8585e

Please sign in to comment.