Skip to content

Bootstrap: llvm-bitcode-linker adds unnecessary recompilation #122491

Closed
@Kobzol

Description

@Kobzol

The llvm-bitcode-linker, which is enabled by default in the compiler config, is recompiled everytime I try to run tests:

$ python3 x.py test tests/run-make/hir-tree/
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building tool llvm-bitcode-linker (stage0 -> stage1, x86_64-unknown-linux-gnu)
   Compiling once_cell v1.19.0
   Compiling cfg-if v1.0.0
...
Building tool rustdoc (stage0 -> stage1, x86_64-unknown-linux-gnu)
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.19.0
...
$ python3 x.py test tests/run-make/hir-tree/
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building tool llvm-bitcode-linker (stage0 -> stage1, x86_64-unknown-linux-gnu)
   Compiling once_cell v1.19.0
   Compiling cfg-if v1.0.0
...
Building tool rustdoc (stage0 -> stage1, x86_64-unknown-linux-gnu)
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.19.0
...

The recompilation also causes further recompilation of rustdoc (if I disable the bitcode linker, rustdoc is not recompiled).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions