mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-11 06:35:51 +00:00
The llvm apt repos are offline. This is a workaround to install clang directly from a tar file.
25 lines
715 B
Bash
25 lines
715 B
Bash
#!/bin/sh
|
|
# Assumptions:
|
|
# 1) BOOST_ROOT and BOOST_URL are already defined,
|
|
# and contain valid values.
|
|
# 2) The last namepart of BOOST_ROOT matches the
|
|
# folder name internal to boost's .tar.gz
|
|
# When testing you can force a boost build by clearing travis caches:
|
|
# https://travis-ci.org/ripple/rippled/caches
|
|
set -e
|
|
|
|
if [ ! -d "$BOOST_ROOT/lib" ]
|
|
then
|
|
wget $BOOST_URL -O /tmp/boost.tar.gz
|
|
cd `dirname $BOOST_ROOT`
|
|
rm -fr ${BOOST_ROOT}
|
|
tar xzf /tmp/boost.tar.gz
|
|
cd $BOOST_ROOT && \
|
|
./bootstrap.sh --prefix=$BOOST_ROOT && \
|
|
./b2 -d1 define=_GLIBCXX_USE_CXX11_ABI=0 -j${NUM_PROCESSORS:-2} &&\
|
|
./b2 -d0 define=_GLIBCXX_USE_CXX11_ABI=0 install
|
|
else
|
|
echo "Using cached boost at $BOOST_ROOT"
|
|
fi
|
|
|