We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b90551 commit cb27fafCopy full SHA for cb27faf
src/bootstrap/builder.rs
@@ -426,6 +426,7 @@ impl<'a> Builder<'a> {
426
self.sysroot(compiler)
427
})
428
.env("RUSTC_LIBDIR", self.sysroot_libdir(compiler, self.build.build))
429
+ .env("CFG_RELEASE_CHANNEL", &self.build.config.channel)
430
.env("RUSTDOC_REAL", self.rustdoc(compiler));
431
cmd
432
}
@@ -574,6 +575,9 @@ impl<'a> Builder<'a> {
574
575
// FIXME: should update code to not require this env var
576
cargo.env("CFG_COMPILER_HOST_TRIPLE", target);
577
578
+ // Set this for all builds to make sure doc builds also get it.
579
+ cargo.env("CFG_RELEASE_CHANNEL", &self.build.config.channel);
580
+
581
if self.is_verbose() {
582
cargo.arg("-v");
583
0 commit comments