Skip to content

Commit

Permalink
Add _GLIBCXX_USE_TBB_PAR_BACKEND=0 definition to allow compilation wi…
Browse files Browse the repository at this point in the history
…th libstdc++10 without it trying to use old TBB API
  • Loading branch information
lkeegan committed Nov 8, 2023
1 parent 6230e33 commit 299a6fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export CMAKE_OSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}"
export DUNE_COPASI_USE_STATIC_DEPS=ON
export CMAKE_INSTALL_PREFIX=$DEPSDIR
export MAKE_OPTIONS="-j2 VERBOSE=1"
export CMAKE_CXX_FLAGS="'-fvisibility=hidden'"
# disable gcc 10 pstl TBB backend as it uses the old TBB API
export CMAKE_CXX_FLAGS="'-fvisibility=hidden -D_GLIBCXX_USE_TBB_PAR_BACKEND=0'"
export BUILD_SHARED_LIBS=OFF
export CMAKE_DISABLE_FIND_PACKAGE_MPI=ON
export DUNE_ENABLE_PYTHONBINDINGS=OFF
Expand Down

0 comments on commit 299a6fa

Please sign in to comment.