-
Notifications
You must be signed in to change notification settings - Fork 71
chore: upgrade LLVM to 22.1.4 #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
16bit-ykiko
wants to merge
28
commits into
main
Choose a base branch
from
chore/upgrade-llvm-22
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1ef22ae
chore: use umbrella targets for LLVM distribution components
16bit-ykiko 93b5310
fix: reduce LLVM_TARGETS_TO_BUILD to X86;AArch64;ARM;RISCV
16bit-ykiko 7f612d9
fix: free disk space on macOS runners before LLVM build
16bit-ykiko d734725
ci: add temporary workflow to test macOS disk cleanup
16bit-ykiko fc7e2bc
ci(temp): test macOS disk cleanup only
16bit-ykiko 99c8b0e
ci: restore full build matrix and remove test workflow
16bit-ykiko c7e7462
chore: adapt codebase to LLVM 22.1.4 API changes
16bit-ykiko 9e004a2
ci: add prune-llvm workflow for discovering unused LLVM libraries
16bit-ykiko be37e95
fix(prune): record file sizes during discover and fix skip-pattern
16bit-ykiko b5be360
refactor(cmake): switch to find_package(LLVM/Clang) for dependency re…
16bit-ykiko 25a6e85
fix(prune): nullify shared libs and force relink during discovery
16bit-ykiko 115fc4a
fix(prune): replace pruned libs with empty archives and track shared …
16bit-ykiko baffc35
ci: add release-llvm workflow and rewrite cmake download
16bit-ykiko 42ae5f3
ci: add push trigger for release-llvm on feature branch
16bit-ykiko 9d83938
refactor: rename prune script to release-llvm and add parallel repackage
16bit-ykiko 8a1ff57
ci: split repackage into parallel matrix jobs with direct release upload
16bit-ykiko 2701592
fix(release): use xz -6 compression to keep assets under 2GB limit
16bit-ykiko b6eaf21
fix(release): use xz -6 compression to keep assets under 2GB limit
16bit-ykiko a98c370
fix(release): retry with xz -9 when artifact exceeds 2GB limit
16bit-ykiko 3e6e9c7
refactor(release): use xz -9 compression and key-based manifest format
16bit-ykiko 3ccd229
refactor(release): use xz -9e extreme compression for maximum ratio
16bit-ykiko 0bb19b6
chore: update llvm-manifest.json to 22.1.4
16bit-ykiko 5a06cd0
chore: remove unused setup-llvm.py
16bit-ykiko c609dc8
fix: address review findings for LLVM 22 upgrade
16bit-ykiko 4adaa1e
fix: address second round of review findings
16bit-ykiko ea07d04
chore: strip build-llvm.yml to LLVM-only build
16bit-ykiko 4d82e38
fix: add clangOptions to link deps and apply formatting
16bit-ykiko a8720c9
chore: remove dead upload-llvm workflow and scripts
16bit-ykiko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Template injection vulnerability from user-controlled input.
Direct interpolation of
${{ inputs.llvm_version }}into the shell script enables code injection if a malicious value is provided. While the attack surface is limited to users with workflow dispatch permissions, defense-in-depth recommends using theenvcontext instead.🔒 Recommended fix: pass input via env context
- name: Clone llvm-project shell: bash + env: + LLVM_VERSION: ${{ inputs.llvm_version }} run: | - VERSION="${{ inputs.llvm_version }}" + VERSION="${LLVM_VERSION}" echo "Cloning LLVM ${VERSION}..." git clone --branch "llvmorg-${VERSION}" --depth 1 https://github.com/llvm/llvm-project.git .llvm🧰 Tools
🪛 zizmor (1.25.2)
[error] 148-148: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
🤖 Prompt for AI Agents
Source: Linters/SAST tools