Skip to content

Rebuild LLVM when it changed #54959

Closed
@Ekleog

Description

@Ekleog

I've spent the past few hours looking through documentation for how to build rustc with a patched LLVM without success. Currently, the best I'm at is:

submodules = false
fast-submodules = false

And then build with:

./x.py build --stage 1 src/llvm src/libstd

But even that doesn't rebuild anything unless I rm -Rf build. Which completely loses incremental compilation results.

Is there any way to make this development workflow better? Rebuilding from scratch at every change is… painful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityT-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