summaryrefslogtreecommitdiffstats
path: root/llvm/utils/docker/scripts/build_install_llvm.sh
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-03-26 15:12:30 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-03-26 15:12:30 +0000
commitd95020108c48d785b99b08cce423134a8463a95d (patch)
tree96aad211e3f56ccf10cc088bdfce16d38bf5e584 /llvm/utils/docker/scripts/build_install_llvm.sh
parent4fd4fd610c53aaa9af3bce975fe96b108449359e (diff)
downloadbcm5719-llvm-d95020108c48d785b99b08cce423134a8463a95d.tar.gz
bcm5719-llvm-d95020108c48d785b99b08cce423134a8463a95d.zip
Migrate dockerfiles to use multi-stage builds.
Summary: We previously emulated multi-staged builds using two dockerfiles, native support from Docker allows us to merge them into one, simplifying our scripts. For more details about multi-stage builds, see: https://docs.docker.com/develop/develop-images/multistage-build/ Reviewers: mehdi_amini, klimek, sammccall Reviewed By: sammccall Subscribers: llvm-commits, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D44787 llvm-svn: 328503
Diffstat (limited to 'llvm/utils/docker/scripts/build_install_llvm.sh')
-rwxr-xr-xllvm/utils/docker/scripts/build_install_llvm.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/utils/docker/scripts/build_install_llvm.sh b/llvm/utils/docker/scripts/build_install_llvm.sh
index 67e537fad27..7e5ac1e5807 100755
--- a/llvm/utils/docker/scripts/build_install_llvm.sh
+++ b/llvm/utils/docker/scripts/build_install_llvm.sh
@@ -16,8 +16,8 @@ Usage: build_install_llvm.sh [options] -- [cmake-args]
Checkout svn sources and run cmake with the specified arguments. Used
inside docker container.
-Passes additional -DCMAKE_INSTALL_PREFIX and archives the contents of
-the directory to /tmp/clang.tar.gz.
+Passes additional -DCMAKE_INSTALL_PREFIX and puts the build results into
+/tmp/clang-install/ directory.
Available options:
-h|--help show this help message
@@ -244,12 +244,7 @@ ninja $CMAKE_INSTALL_TARGETS
popd
-# Pack the installed clang into an archive.
-echo "Archiving clang installation to /tmp/clang.tar.gz"
-cd "$CLANG_INSTALL_DIR"
-tar -czf /tmp/clang.tar.gz *
-
# Cleanup.
-rm -rf "$CLANG_BUILD_DIR" "$CLANG_INSTALL_DIR"
+rm -rf "$CLANG_BUILD_DIR"
echo "Done"
OpenPOWER on IntegriCloud