Skip to content

Commit

Permalink
Merge pull request #1028 from yarrick/cmake_macos
Browse files Browse the repository at this point in the history
Fix cmake-macos workflow
  • Loading branch information
aristocratos authored Feb 1, 2025
2 parents 1fbb521 + 093192e commit ade29aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ jobs:
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew update --quiet
brew install --force --overwrite cmake llvm ninja lowdown
brew install --force --overwrite cmake llvm lld ninja lowdown
- name: Configure
run: |
export LLVM_PREFIX="$(brew --prefix llvm)"
export LLD_PREFIX="$(brew --prefix lld)"
export CXX="$LLVM_PREFIX/bin/clang++"
export CPPFLAGS="-I$LLVM_PREFIX/include"
export LDFLAGS="-L$LLVM_PREFIX/lib -L$LLVM_PREFIX/lib/c++ -Wl,-rpath,$LLVM_PREFIX/lib/c++ -fuse-ld=$LLVM_PREFIX/bin/ld64.lld"
export LDFLAGS="-L$LLVM_PREFIX/lib -L$LLVM_PREFIX/lib/c++ -Wl,-rpath,$LLVM_PREFIX/lib/c++ -fuse-ld=$LLD_PREFIX/bin/ld64.lld"
cmake -B build -G Ninja
- name: Compile
Expand Down

0 comments on commit ade29aa

Please sign in to comment.