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 ed3b520
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ 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=/usr/local/opt/llvm/bin/clang++
export CC=/usr/local/opt/llvm/bin/clang
export LDFLAGS="-L/usr/local/opt/llvm/lib -L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++"
export CPPFLAGS="-I/usr/local/opt/llvm/include"

$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 +32,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'"
export BUILD_SHARED_LIBS=OFF
export CMAKE_DISABLE_FIND_PACKAGE_MPI=ON
export DUNE_ENABLE_PYTHONBINDINGS=OFF
Expand Down

0 comments on commit ed3b520

Please sign in to comment.