Skip to content

Commit

Permalink
-fexperimental-library for clang/libc++ to enable <execution>, try to…
Browse files Browse the repository at this point in the history
… use llvm clang17
  • Loading branch information
lkeegan committed Nov 2, 2023
1 parent ba4d1b9 commit 86cbe70
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ echo "DUNE_COPASI_VERSION: ${DUNE_COPASI_VERSION}"
echo "PATH: $PATH"
echo "MSYSTEM: $MSYSTEM"

which g++
which cmake
g++ --version
gcc --version
cmake --version
export CXX=$HOMEBREW_PREFIX/opt/llvm/bin/clang++
export CC=$HOMEBREW_PREFIX/opt/llvm/bin/clang

$CXX --version

echo "Downloading static libs for OS_TARGET: $OS_TARGET"
wget "https://github.com/spatial-model-editor/sme_deps_common/releases/download/${SME_DEPS_COMMON_VERSION}/sme_deps_common_${OS_TARGET}.tgz"
Expand All @@ -31,7 +30,8 @@ fi
export DUNE_COPASI_USE_STATIC_DEPS=ON
export CMAKE_INSTALL_PREFIX=$DEPSDIR
export MAKE_OPTIONS="-j2 VERBOSE=1"
export CMAKE_CXX_FLAGS='-fvisibility=hidden'
# -fexperimental-library for clang/libc++ to enable <execution>
export CMAKE_CXX_FLAGS="-fvisibility=hidden -fexperimental-library -L$HOMEBREW_PREFIX/opt/llvm/lib/c++ -Wl,-rpath,$HOMEBREW_PREFIX/opt/llvm/lib/c++"
export BUILD_SHARED_LIBS=OFF
export CMAKE_DISABLE_FIND_PACKAGE_MPI=ON
export DUNE_ENABLE_PYTHONBINDINGS=OFF
Expand Down

0 comments on commit 86cbe70

Please sign in to comment.