diff options
author | 2021-01-11 15:31:56 +0000 | |
---|---|---|
committer | 2021-01-11 15:31:56 +0000 | |
commit | 16ff81ed8b1ed9aa06fb1a731a2446b66cc49bef (patch) | |
tree | 1a7dd8152b94f6f8cd318bfaf85aa40882854583 /lib/libcxx/utils/docker/scripts/build_gcc.sh | |
parent | sync (diff) | |
download | wireguard-openbsd-16ff81ed8b1ed9aa06fb1a731a2446b66cc49bef.tar.xz wireguard-openbsd-16ff81ed8b1ed9aa06fb1a731a2446b66cc49bef.zip |
Remove libc++ and libc++abi 8.0.0 now that we switched to version 10.0.1
in the gnu/ directory.
Diffstat (limited to 'lib/libcxx/utils/docker/scripts/build_gcc.sh')
-rwxr-xr-x | lib/libcxx/utils/docker/scripts/build_gcc.sh | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/lib/libcxx/utils/docker/scripts/build_gcc.sh b/lib/libcxx/utils/docker/scripts/build_gcc.sh deleted file mode 100755 index 85feb16acd6..00000000000 --- a/lib/libcxx/utils/docker/scripts/build_gcc.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env bash -#===- libcxx/utils/docker/scripts/build-gcc.sh ----------------------------===// -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -#===-----------------------------------------------------------------------===// - -set -e - - -function show_usage() { - cat << EOF -Usage: build-gcc.sh [options] - -Run autoconf with the specified arguments. Used inside docker container. - -Available options: - -h|--help show this help message - --source the source path from which to run the configuration. - --to destination directory where to install the targets. -Required options: --to, at least one --install-target. - -All options after '--' are passed to CMake invocation. -EOF -} - -GCC_INSTALL_DIR="" -GCC_SOURCE_DIR="" - -while [[ $# -gt 0 ]]; do - case "$1" in - --to) - shift - GCC_INSTALL_DIR="$1" - shift - ;; - --source) - shift - GCC_SOURCE_DIR="$1" - shift - ;; - -h|--help) - show_usage - exit 0 - ;; - *) - echo "Unknown option: $1" - exit 1 - esac -done - -if [ "$GCC_INSTALL_DIR" == "" ]; then - echo "No install directory. Please specify the --to argument." - exit 1 -fi - -if [ "$GCC_SOURCE_DIR" == "" ]; then - echo "No source directory. Please specify the --source argument." - exit 1 -fi - -GCC_NAME=`basename $GCC_SOURCE_DIR` -GCC_BUILD_DIR="/tmp/gcc-build-root/build-$GCC_NAME" - -mkdir -p "$GCC_INSTALL_DIR" -mkdir -p "$GCC_BUILD_DIR" -pushd "$GCC_BUILD_DIR" - -# Run the build as specified in the build arguments. -echo "Running configuration" -$GCC_SOURCE_DIR/configure --prefix=$GCC_INSTALL_DIR \ - --disable-bootstrap --disable-libgomp --disable-libitm \ - --disable-libvtv --disable-libcilkrts --disable-libmpx \ - --disable-liboffloadmic --disable-libcc1 --enable-languages=c,c++ - -NPROC=`nproc` -echo "Running build with $NPROC threads" -make -j$NPROC - -echo "Installing to $GCC_INSTALL_DIR" -make install -j$NPROC - -popd - -# Cleanup. -rm -rf "$GCC_BUILD_DIR" - -echo "Done"
\ No newline at end of file |