Skip to content

Commit e0a281f

Browse files
cdeckerclaude
andcommitted
fix: Add LLVM 18 tools to PATH and create symlinks
The llvm-18-tools package installs tools in /usr/lib/llvm-18/bin/ rather than /usr/bin/. This caused llvm-profdata-18 and other tools to not be found in the PATH. Fix: - Add /usr/lib/llvm-18/bin to PATH via /etc/profile.d/ - Create symlinks in /usr/bin for direct access to llvm-profdata-18 and llvm-cov-18 - This ensures tools are accessible regardless of shell configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <[email protected]>
1 parent 701f893 commit e0a281f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/scripts/setup.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ sudo apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
6767
systemtap-sdt-dev \
6868
zlib1g-dev
6969

70+
# Add LLVM 18 tools to PATH (they're installed in /usr/lib/llvm-18/bin/)
71+
export PATH="/usr/lib/llvm-18/bin:$PATH"
72+
echo 'export PATH="/usr/lib/llvm-18/bin:$PATH"' | sudo tee /etc/profile.d/llvm-18-path.sh
73+
74+
# Create symlinks in /usr/bin for common LLVM tools so they're always accessible
75+
echo "Creating symlinks for LLVM 18 tools in /usr/bin..."
76+
sudo ln -sf /usr/lib/llvm-18/bin/llvm-profdata /usr/bin/llvm-profdata-18 || true
77+
sudo ln -sf /usr/lib/llvm-18/bin/llvm-cov /usr/bin/llvm-cov-18 || true
78+
sudo ln -sf /usr/bin/llvm-profdata-18 /usr/bin/llvm-profdata || true
79+
sudo ln -sf /usr/bin/llvm-cov-18 /usr/bin/llvm-cov || true
80+
7081
echo "tester ALL=(root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/tester
7182
sudo chmod 0440 /etc/sudoers.d/tester
7283

0 commit comments

Comments
 (0)