Skip to content

Commit

Permalink
[CI] Fix TRIQS compilation on macOS-12 / Clang 17
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed May 14, 2024
1 parent c6b74cf commit f69faeb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
fail-fast: false
matrix:
include:
- {os: ubuntu-22.04, cc: gcc-12, cxx: g++-12}
- {os: ubuntu-22.04, cc: clang-15, cxx: clang++-15}
- {os: macos-12, cc: gcc-12, cxx: g++-12}
# FIXME
#- {os: ubuntu-22.04, cc: gcc-12, cxx: g++-12}
#- {os: ubuntu-22.04, cc: clang-15, cxx: clang++-15}
#- {os: macos-12, cc: gcc-12, cxx: g++-12}
- {os: macos-12, cc: /usr/local/opt/llvm@17/bin/clang,
cxx: /usr/local/opt/llvm@17/bin/clang++}

Expand Down Expand Up @@ -122,10 +123,16 @@ jobs:
run: |
git clone https://github.com/TRIQS/triqs --branch 3.2.x
mkdir triqs/build && pushd triqs/build
if [[ "${{ matrix.os }}" == macos* &&
"${{ matrix.cxx }}" == *clang++ ]]; then
LC="-DLIBCLANG_LOCATION=/usr/local/opt/llvm@17/lib/libclang.dylib"
export CPPFLAGS="-Xpreprocessor -fopenmp=libomp"
fi
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/install \
-DBoost_INCLUDE_DIR=$HOME/boost \
${LC} \
-DBuild_Tests=OFF
make -j2 install VERBOSE=1
popd
Expand Down

0 comments on commit f69faeb

Please sign in to comment.