Skip to content

Enable LLVM Thin LTO for LoongArch64 - #162748

Open
heiher wants to merge 1 commit into
rust-lang:mainfrom
heiher:loong64-llvm-clang-thin-lto
Open

heiher wants to merge 1 commit into
rust-lang:mainfrom
heiher:loong64-llvm-clang-thin-lto

Conversation

@heiher

@heiher heiher commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

This PR switches the LLVM build cross-compiler from GCC to Clang and enables LLVM Thin LTO for LoongArch64 distributions.

There is no significant performance difference with this change. It also reduces the size of the build artifacts:

Artifacts Before After
rust-nightly-loongarch64-unknown-linux-gnu.tar.xz 287M 177M
rust-nightly-loongarch64-unknown-linux-gnu directory 1.6G 849M
rust-nightly-loongarch64-unknown-linux-musl.tar.xz 285M 177M
rust-nightly-loongarch64-unknown-linux-musl directory 1.6G 847M

This PR switches the LLVM build cross-compiler from GCC to Clang and
enables LLVM Thin LTO for LoongArch64 distributions.

There is no significant performance difference with this change. It
also reduces the size of the build artifacts:

| Artifacts                                             | Before | After |
|-------------------------------------------------------|--------|-------|
| rust-nightly-loongarch64-unknown-linux-gnu.tar.xz     | 287M   | 177M  |
| rust-nightly-loongarch64-unknown-linux-gnu directory  | 1.6G   | 849M  |
| rust-nightly-loongarch64-unknown-linux-musl.tar.xz    | 285M   | 177M  |
| rust-nightly-loongarch64-unknown-linux-musl directory | 1.6G   | 847M  |
@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Sep 14, 2026
@rustbot

rustbot commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: infra-ci
  • infra-ci expanded to Kobzol, Mark-Simulacrum, jieyouxu, marcoieni, ubiratansoares
  • Random selection from Mark-Simulacrum, jieyouxu, marcoieni, ubiratansoares

@jieyouxu

Copy link
Copy Markdown
Member

@bors try jobs=dist-loongarch64*

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 14, 2026
Enable LLVM Thin LTO for LoongArch64


try-job: dist-loongarch64*
@rust-bors

rust-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: ff6adf0 (ff6adf0bbeb9d9b3157a53c0f01b0ed70e12f840)
Base parent: 4b6d04e (4b6d04e706108ccfeafe2547fbe857dfe8972bad)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants