mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 02:25:52 +00:00
* Remove cxx14 compatibility layer from ripple * Update travis to clang 3.6 and drop gcc 4.8 * Remove unneeded beast CXX14 defines * Do not run clang build with gdb with travis * Update circle ci to clang 3.6 & gcc-5 * Don't run rippled in gdb, clang builds crash gdb * Staticly link libstdc++, boost, ssl, & protobuf * Support builds on ubuntu 15.10
35 lines
977 B
Bash
Executable File
35 lines
977 B
Bash
Executable File
#!/bin/bash -u
|
|
# Exit if anything fails.
|
|
set -e
|
|
# Override gcc version to $GCC_VER.
|
|
# Put an appropriate symlink at the front of the path.
|
|
mkdir -v $HOME/bin
|
|
for g in gcc g++ gcov gcc-ar gcc-nm gcc-ranlib
|
|
do
|
|
test -x $( type -p ${g}-$GCC_VER )
|
|
ln -sv $(type -p ${g}-$GCC_VER) $HOME/bin/${g}
|
|
done
|
|
for c in clang clang++
|
|
do
|
|
test -x $( type -p ${c}-$CLANG_VER )
|
|
ln -sv $(type -p ${c}-$CLANG_VER) $HOME/bin/${c}
|
|
done
|
|
export PATH=$PWD/bin:$PATH
|
|
|
|
# What versions are we ACTUALLY running?
|
|
if [ -x $HOME/bin/g++]; then
|
|
$HOME/bin/g++ -v
|
|
fi
|
|
if [ -x $HOME/bin/clang]; then
|
|
$HOME/bin/clang -v
|
|
fi
|
|
# Avoid `spurious errors` caused by ~/.npm permission issues
|
|
# Does it already exist? Who owns? What permissions?
|
|
ls -lah ~/.npm || mkdir ~/.npm
|
|
# Make sure we own it
|
|
chown -Rc $USER ~/.npm
|
|
# We use this so we can filter the subtrees from our coverage report
|
|
pip install --user https://github.com/sublimator/codecov-python/zipball/source-match
|
|
|
|
bash bin/sh/install-boost.sh
|