Ensure libraries built in stage0 have unique metadata
authorJosh Stone <jistone@redhat.com>
Wed, 16 May 2018 00:48:02 +0000 (17:48 -0700)
committerXimin Luo <infinity0@debian.org>
Wed, 25 Jul 2018 04:35:56 +0000 (05:35 +0100)
commit71f12f51a9d5bb846f7d493e41cf1a463db34bfa
tree49c9516879126b92bd1ba528d5f0a5f1c944af99
parent8ebb19593ce978217fb0b0b60254a3954b983b1d
Ensure libraries built in stage0 have unique metadata

Issue #50786 shows a case with local rebuild where the libraries built
by stage0 had the same suffix as stage0's own, and were accidentally
loaded by that stage0 rustc when compiling `librustc_trans`.

Now we set `__CARGO_DEFAULT_LIB_METADATA` to "bootstrap" during stage0,
rather than the release channel like usual, so the library suffix will
always be completely distinct from the stage0 compiler.

Gbp-Pq: Name u-0001-Ensure-libraries-built-in-stage0-have-unique-metadat.patch
src/bootstrap/builder.rs