Skip to content

build: bump LLVM to 21#24

Merged
zbeekman merged 3 commits into
mainfrom
llvm-21
May 6, 2026
Merged

build: bump LLVM to 21#24
zbeekman merged 3 commits into
mainfrom
llvm-21

Conversation

@zbeekman

@zbeekman zbeekman commented May 5, 2026

Copy link
Copy Markdown
Member

Update Dockerfile ARG LLVM_VER (both stages) and CI.yml env from 20 to 21 so the LLVM build pulls release/21.x. Existing >= 20 conditionals already cover the projects/runtimes split and the flang-new -> flang rename, which became hard requirements in LLVM 21.

zbeekman added 3 commits May 5, 2026 13:14
Update Dockerfile ARG LLVM_VER (both stages) and CI.yml env from 20 to
21 so the LLVM build pulls release/21.x. Existing >= 20 conditionals
already cover the projects/runtimes split and the flang-new -> flang
rename, which became hard requirements in LLVM 21.
…ang-rt

LLVM 21 reorganized Flang:
- flang/lib/Common → flang/lib/Support (lib FortranCommon → FortranSupport)
- flang/runtime → flang-rt subproject (built via LLVM_ENABLE_RUNTIMES)

Add LLVM_VER >= 21 branch to LLVM_RUNTIMES (adds flang-rt) and to
FLANG_TARGETS (uses install-FortranSupport, drops install-FortranRuntime
since install-runtimes aggregate now handles flang-rt).

Backwards compatible: LLVM 20 path unchanged.

Verified all 27 explicit ninja targets resolve in LLVM 21 via configure-only
probe build (cmake -GNinja, then ninja -t query for each target).
…din JSON

Claude Code no longer exports CLAUDE_FILE_PATH; PostToolUse hooks now receive
input as JSON on stdin. All 7 hooks were silently no-op'ing (or erroring on
'unbound variable' under set -u) until tool-input was extracted via jq.

- Read file_path from .tool_input.file_path on stdin
- Add 'set -euo pipefail' to two hooks that lacked it
- Fix latent regex in check-workflow-expressions.sh to accept YAML list
  dash prefix ('- run: |'), which had been masked by the no-op behavior

Tested each hook against pass/fail fixtures in .tmp/hook-test/ and confirmed
correct exit codes plus violation output. Edge cases (no path, empty JSON)
exit 0 cleanly.

Ref: https://code.claude.com/docs/en/hooks.md
@zbeekman zbeekman merged commit 049ca77 into main May 6, 2026
8 checks passed
@zbeekman zbeekman deleted the llvm-21 branch May 6, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant