Skip to content

Commit

Permalink
fix (ci): use clang and correct CFLAGS on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
Oz Tiram committed Jul 23, 2024
1 parent 97d20da commit 65246e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
run: brew update
- name: install libs
run: brew install pcre2 cmocka
#- name: Install dependencies
# run: |
# brew install llvm
# echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> $GITHUB_ENV
# echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> $GITHUB_ENV
# echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> $GITHUB_ENV
- name: Install dependencies
run: |
brew install llvm
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> $GITHUB_ENV
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> $GITHUB_ENV
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> $GITHUB_ENV
- name: build
run: |
#clang -o mh -D VERSION=\"aa30377\" queue.c mh.c main.c -Wall $(pkg-config --cflags --libs libpcre2-8)
make mh
#clang -o mh -D VERSION=\"aa30377\" queue.c mh.c main.c -Wall $(pkg-config --cflags --libs libpcre2-8)
make mh CC=clang LIBS="$(pkg-config --cflags --libs libpcre2-8) -lpthread"

0 comments on commit 65246e0

Please sign in to comment.