From 1a0391aaf2c842422a82250d48538be102216519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20P=C3=B6chtrager?= Date: Mon, 3 Jun 2019 18:43:33 +0200 Subject: [PATCH] build_clang.sh: Remove old GCC check --- build_clang.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/build_clang.sh b/build_clang.sh index 79f7706..0c236bd 100755 --- a/build_clang.sh +++ b/build_clang.sh @@ -16,43 +16,6 @@ source tools/tools.sh mkdir -p $BUILD_DIR -if [[ $(uname -s) == CYGWIN* ]]; then - DISABLE_BOOTSTRAP=1 -fi - -if [ -z "$SKIP_GCC_CHECK" ]; then -if [ $PLATFORM != "Darwin" -a $PLATFORM != "FreeBSD" ]; then - set +e - which "g++${GCC_SUFFIX}" &>/dev/null && \ - { - export CC="gcc${GCC_SUFFIX}" - export CXX="g++${GCC_SUFFIX}" - test=" - #define GCC_VERSION_AT_LEAST(major, minor, patch) \ - (defined(__GNUC__) && \ - (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \ - (major * 10000 + minor * 100 + patch)) - - #if !GCC_VERSION_AT_LEAST(4, 7, 0) - not_gcc_47_or_later - #endif" - echo "$test" | $CXX -fsyntax-only -xc++ - &>/dev/null || \ - { - echo "Your GCC installation is too old to build recent clang releases." - echo "Building clang 3.4.2 instead." - CLANG_VERSION=3.4.2 - } - } || \ - { - echo "Can not detect GCC installation." 1>&2 - echo "You may want to try 'GCC_SUFFIX= $0'" 1>&2 - echo "(i.e. GCC_SUFFIX=-4.7 $0)" 1>&2 - exit 1 - } - set -e -fi -fi - source $BASE_DIR/tools/trap_exit.sh MIRROR="http://releases.llvm.org"