function to add tbb with debug

release/4.3a0
Varun Agrawal 2020-03-26 16:03:51 -04:00
parent 88005a99a1
commit 80fc06cad7
1 changed files with 14 additions and 0 deletions

View File

@ -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} \