install tbb before install to allow propagation of env variables
parent
7248b149fd
commit
5dc19e0746
|
@ -5,7 +5,7 @@ function install_tbb()
|
||||||
{
|
{
|
||||||
if [ "$(uname -s)" == "Linux" ]; then
|
if [ "$(uname -s)" == "Linux" ]; then
|
||||||
wget https://github.com/oneapi-src/oneTBB/releases/download/4.4.2/tbb44_20151115oss_lin.tgz -O /tmp/tbb442.tgz
|
wget https://github.com/oneapi-src/oneTBB/releases/download/4.4.2/tbb44_20151115oss_lin.tgz -O /tmp/tbb442.tgz
|
||||||
tar -C /tmp -xvf /tmp/tbb442.tgz
|
tar -C /tmp -xf /tmp/tbb442.tgz
|
||||||
|
|
||||||
TBBROOT=/tmp/tbb44_20151115oss
|
TBBROOT=/tmp/tbb44_20151115oss
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ function install_tbb()
|
||||||
|
|
||||||
elif [ "$(uname -s)" == "Darwin" ]; then
|
elif [ "$(uname -s)" == "Darwin" ]; then
|
||||||
wget https://github.com/oneapi-src/oneTBB/releases/download/4.4.2/tbb44_20151115oss_osx.tgz -O /tmp/tbb442.tgz
|
wget https://github.com/oneapi-src/oneTBB/releases/download/4.4.2/tbb44_20151115oss_osx.tgz -O /tmp/tbb442.tgz
|
||||||
tar -C /tmp -xvf /tmp/tbb442.tgz
|
tar -C /tmp -xf /tmp/tbb442.tgz
|
||||||
|
|
||||||
TBBROOT=/tmp/tbb44_20151115oss
|
TBBROOT=/tmp/tbb44_20151115oss
|
||||||
|
|
||||||
|
@ -51,8 +51,6 @@ function configure()
|
||||||
export CXX=g++-$GCC_VERSION
|
export CXX=g++-$GCC_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_tbb
|
|
||||||
|
|
||||||
# GTSAM_BUILD_WITH_MARCH_NATIVE=OFF: to avoid crashes in builder VMs
|
# GTSAM_BUILD_WITH_MARCH_NATIVE=OFF: to avoid crashes in builder VMs
|
||||||
cmake $SOURCE_DIR \
|
cmake $SOURCE_DIR \
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \
|
||||||
|
@ -111,4 +109,7 @@ case $1 in
|
||||||
-t)
|
-t)
|
||||||
test
|
test
|
||||||
;;
|
;;
|
||||||
|
-tbb)
|
||||||
|
install_tbb
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -17,8 +17,9 @@ addons:
|
||||||
- libpython-dev python-numpy
|
- libpython-dev python-numpy
|
||||||
- libboost-all-dev
|
- libboost-all-dev
|
||||||
|
|
||||||
# before_install:
|
before_install:
|
||||||
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
|
- ./.travis.sh -tbb
|
||||||
|
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache ; fi
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache ; fi
|
||||||
|
|
Loading…
Reference in New Issue