Fetching contributors…
Cannot retrieve contributors at this time
executable file 43 lines (32 sloc) 921 Bytes
#!/usr/bin/env bash
# Enable strict mode and fail the script on non-zero exit code,
# unresolved variable or pipe failure.
set -euo pipefail
if [ "$(uname)" == "Darwin" ]; then
brew update
brew install sbt
brew install bdw-gc
brew link bdw-gc
brew install jq
brew install re2
brew install llvm@4
export PATH="/usr/local/opt/llvm@4/bin:$PATH"
sudo apt-get update
# Remove pre-bundled libunwind
sudo find /usr -name "*libunwind*" -delete
# Use pre-bundled clang
export PATH=/usr/local/clang-5.0.0/bin:$PATH
export CXX=clang++
# Install Boehm GC and libunwind
sudo apt-get install libgc-dev libunwind8-dev
# Build and install re2 from source
git clone
pushd re2
git checkout 2017-03-01
make -j4 test
sudo make install prefix=/usr
make testinstall prefix=/usr