Skip to content

analysis: 26 configurations from source-built LLVM runtimes (part of #15298) #15516

Backlog

Description

@TrapsterDK

adopt_polyglot went from 4 to 26 configurations and from 171 to 212 MB heap in #15507. cc/llvm/runtimes_prebuilt.json is empty, so every link builds the LLVM runtimes through the stage0, stage1, stage1_hosted, linkmode and consumer transitions.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT

Activity

  1. TrapsterDK commented on Dec 3, 2026

    @TrapsterDK
    CollaboratorAuthor

    I can't fill cc/llvm/runtimes_prebuilt.json yet. These are the blockers:

    1. No fillable release assets. fill_pins either needs a published, attested release, or, with --manifest, it writes release-download URLs. A release.yml dry run uploads nothing, so those URLs would 404. A real release has to match DX_VERSION 0.0.1. Tag v0.0.1 already points at b52c02f, which predates prebuilt: one mechanism for prebuilt tools and LLVM runtimes (part of #15298) #15450, and a draft release exists for it. Publishing needs owner action: either bump DX_VERSION to 0.0.2 and tag it, or retag v0.0.1. No release.yml run has completed. Runs 46769160963 and 46767602353 were cancelled; their llvm-runtimes jobs passed. Run 46185948231 failed in cells and verify.

    2. Filling the index broke C++ compiles with undeclared libc++ header inclusions. llvm: declare prebuilt runtime headers as tree artifacts (part of #15298) #15540 fixes that.

    3. The prebuilts alone do not lower the budgets. With a local linux_x86_64_gnu.2.28 index, adopt_polyglot stays at 28 configurations, 226 MB heap. On main it is 28 configurations, 218 MB. The budget file says 4 / 171 MB, and the test fails on main. The source stage transitions remain because of two things:

      • @llvm//tools/internal binaries, including link-wrapper-clang++ used by Rust links, are cc_runtime_stage1_hosted_binary with runtimes:linkmode=static. prebuilt_eligible excludes static.
      • glibc Scrt1.o is built in stage0 in the target configuration. The archive does not ship it.

      Reaching 6 or fewer configurations needs two changes: the stage1_hosted tools must link the prebuilt builtins and crt (or be shipped prebuilt), and the glibc start files must be added to the archive.

  2. TrapsterDK commented on Dec 4, 2026

    @TrapsterDK
    CollaboratorAuthor

    #15671 merged: the glibc crt1 copy now takes the runtime target, so Scrt1.o builds through the runtime transitions. //... analysis goes from 2,759 to 2,509 configurations and from 3.11M to 2.82M configured targets (-9.3%). The other extra configurations come from how the runtime transitions themselves work. Leaving this open for that. Upstream issue and PR are being drafted.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions