Skip to content

Commit

Permalink
Fix libomp build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidt0x committed Jun 11, 2024
1 parent c6942f4 commit 7d6529f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .cibw/build_libomp_macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
build_dir=${DIR}/libs_build

git clone --depth 1 --branch llvmorg-11.1.0 https://github.com/llvm/llvm-project
pushd llvm-project/openmp
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX="${build_dir}" -DCMAKE_MACOSX_RPATH="${build_dir}/lib" ..
make
make install

popd
rm -rf llvm-project

0 comments on commit 7d6529f

Please sign in to comment.