rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channel

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou 2017-06-29 10:03:56 +02:00
parent a4c68c62f0
commit d23a62ba71

View file

@ -347,7 +347,7 @@ fn cargo(&self,
// FIXME: Temporary fix for https://github.com/rust-lang/cargo/issues/3005
// Force cargo to output binaries with disambiguating hashes in the name
cargo.env("__CARGO_DEFAULT_LIB_METADATA", "1");
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &self.config.channel);
let stage;
if compiler.stage == 0 && self.local_rebuild {