about summary refs log tree commit diff homepage
path: root/scripts/build/llvm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/llvm.sh')
-rwxr-xr-xscripts/build/llvm.sh15
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/build/llvm.sh b/scripts/build/llvm.sh
index cae64dd1..92370159 100755
--- a/scripts/build/llvm.sh
+++ b/scripts/build/llvm.sh
@@ -185,19 +185,8 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
     rm -rf "${LLVM_BASE}"
   fi
 elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
-  # We use our own local cache if possible
-  set +e
-  brew install "$HOME"/Library/Caches/Homebrew/llvm\@${LLVM_VERSION}*.bottle.tar.gz
-  RES=$?
-  set -ev
-  if [ ${RES} -ne 0 ]; then
-    # This might build the llvm package use a time out to avoid dumping log information
-    brew install -v --build-bottle "llvm@${LLVM_VERSION}"
-    # Now bottle the brew
-    brew bottle llvm\@${LLVM_VERSION}
-    # Not make sure it's cached
-    cp llvm\@${LLVM_VERSION}*.bottle.tar.gz $HOME/Library/Caches/Homebrew/
-  fi
+  # Use the brew provided package
+  brew install "llvm\@${LLVM_VERSION_MAJOR}"
 else
   echo "Unhandled TRAVIS_OS_NAME \"${TRAVIS_OS_NAME}\""
   exit 1