Skip to content

Commit

Permalink
Use llvm-config to set env variables (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: 434b <17012133+0xricksanchez@users.noreply.github.com>
  • Loading branch information
bertschneider and 0xricksanchez committed Jan 12, 2023
1 parent 91736fe commit 447088f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/run-all-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: |
brew install cmake llvm@14
LLVM_PATH=$(brew --prefix llvm@14)
LLVM_VERSION=14.0.6
LLVM_CONFIG_PATH=$LLVM_PATH/bin/llvm-config
echo "CC=$($LLVM_CONFIG_PATH --bindir)/clang" >> $GITHUB_ENV
echo "CXX=$($LLVM_CONFIG_PATH --bindir)/clang++" >> $GITHUB_ENV
echo "CFLAGS=$($LLVM_CONFIG_PATH --cflags)" >> $GITHUB_ENV
echo "CXXFLAGS=$($LLVM_CONFIG_PATH --cxxflags)" >> $GITHUB_ENV
echo "LDFLAGS=$($LLVM_CONFIG_PATH --ldflags)" >> $GITHUB_ENV
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
echo "CPATH=$LLVM_PATH/lib/clang/$LLVM_VERSION/include/" >> $GITHUB_ENV
echo "LDFLAGS=-L$LLVM_PATH/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I$LLVM_PATH/include" >> $GITHUB_ENV
echo "CC=$LLVM_PATH/bin/clang" >> $GITHUB_ENV
echo "CXX=$LLVM_PATH/bin/clang++" >> $GITHUB_ENV
- name: MSVC (windows)
uses: ilammy/msvc-dev-cmd@d8610e2b41c6d0f0c3b4c46dad8df0fd826c68e1
if: contains(matrix.os, 'windows')
Expand Down

0 comments on commit 447088f

Please sign in to comment.