Skip to content

libstd gets rebuilt unconditionally #33990

Closed
@flo-l

Description

@flo-l

For reference, the reddit thread, where the discussion started.

My goal

I want to hack on rustc. So I want to make a change, recompile as fast as possible and test the new binary with some input.rs.

The Problem

make rebuilds libstd even if it's unchanged. This takes ages and can't be skipped.

How to reproduce

I'm on Fedora Linux 23, fully updated.

I started with a clone of the rust repo, in which I already compiled rustc more than once (so LLVM was already built etc.).

git reset --hard 298730e   # this is the commit I used for this test
git clean -df
./configure --enable-debug

output

make rustc-stage1 NO_REBUILD=1

output

touch src/librustc_mir/lib.rs
make rustc-stage1 NO_REBUILD=1

output

As you can see in the output of the second make command libstd, libcore etc. get rebuilt.

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