diff --git a/.travis.sh b/.travis.sh index 78351f095..9ff1f22cd 100755 --- a/.travis.sh +++ b/.travis.sh @@ -1,5 +1,17 @@ #!/bin/bash +# install TBB with _debug.so files +function install_tbb() +{ + wget https://github.com/oneapi-src/oneTBB/releases/download/4.4.5/tbb44_20160526oss_lin.tgz + if [ $(uname -s) == "Linux"]; then + tar -xvf tbb44_20160526oss_lin.tgz + elif [ $(uname -s) == "Linux" ]; then + tar -xvf tbb44_20160526oss_mac.tgz + fi + source tbb44_20160526oss/bin/tbbvars.sh intel64 linux auto_tbbroot +} + # common tasks before either build or test function configure() { @@ -19,6 +31,8 @@ function configure() export CXX=g++-$GCC_VERSION fi + install_tbb + # GTSAM_BUILD_WITH_MARCH_NATIVE=OFF: to avoid crashes in builder VMs cmake $SOURCE_DIR \ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \