Skip to content

Commit

Permalink
Enable for llvm-symbolizer for GitHub test workflow
Browse files Browse the repository at this point in the history
During setup put the appropriate path for llvm-symbolizer into
`.bazelrc` for Linux and macOS.

Fix: #1247
  • Loading branch information
ohodson committed Oct 2, 2023
1 parent 4ac08fe commit 7ac193b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ jobs:
sudo apt-get install -y libunwind-14 libc++abi1-14 libc++1-14 libc++-14-dev
echo "build:linux --action_env=CC=/usr/lib/llvm-14/bin/clang --action_env=CXX=/usr/lib/llvm-14/bin/clang++" >> .bazelrc
echo "build:linux --host_action_env=CC=/usr/lib/llvm-14/bin/clang --host_action_env=CXX=/usr/lib/llvm-14/bin/clang++" >> .bazelrc
sed -i -e "s%llvm-symbolizer%/usr/lib/llvm-14/bin/llvm-symbolizer%" .bazelrc
- name: Setup macOS
if: runner.os == 'macOS'
# Image should have llvm@15 installed and we want to symbolize stacks for crashes
# on CI. Xcode is currently based on LLVM 15.
run: |
ls -l $(brew --prefix llvm)
export LLVM_SYMBOLIZER=$(brew --prefix llvm@15)/bin/llvm-symbolizer
sed -i -e "s%llvm-symbolizer%${LLVM_SYMBOLIZER}%" .bazelrc
- name: Setup Windows
if: runner.os == 'Windows'
# Set a custom output dir and disable generating debug information on Windows. By default,
Expand Down

0 comments on commit 7ac193b

Please sign in to comment.