Skip to content

[CI] Use existing clang, don't install using llvm.sh - #9087

Merged
kripken merged 2 commits into
WebAssembly:mainfrom
kripken:unllvm.sh
Sep 9, 2026
Merged

kripken merged 2 commits into
WebAssembly:mainfrom
kripken:unllvm.sh

Conversation

@kripken

@kripken kripken commented Sep 9, 2026

Copy link
Copy Markdown
Member

llvm.sh from the LLVM project is a standard way to get LLVM, but
it downloads lots of stuff we don't need (edit: I
thought it was downloading all those things from the error, but actually
it is just updating package info; less silly but still wasteful overall)

We can just use clang from the runner in most cases. Do that,
and use a newer ubuntu in the one place we need newer clang
(for clang-format-21).

@kripken
kripken marked this pull request as ready for review September 9, 2026 18:55
@kripken
kripken requested a review from a team as a code owner September 9, 2026 18:55
@kripken
kripken requested review from tlively and removed request for a team September 9, 2026 18:55
@kripken

kripken commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

Ok, looks like this works, marking ready for review, and updated the description.

Build times are too noisy to see if there is a speedup, but using the system clang is certainly saving some time, and can avoid errors like the one linked in the description that got me onto this.

@kripken
kripken merged commit 8d786b3 into WebAssembly:main Sep 9, 2026
16 checks passed
@kripken
kripken deleted the unllvm.sh branch September 9, 2026 20:13
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.

2 participants