about summary refs log tree commit diff
path: root/src/bootstrap/toolstate.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-16 08:52:50 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-18 22:44:42 -0500
commitcbd1e73124dbd35cde4b5cafff127a4e54fef9fe (patch)
tree31ffd00064634f93486c947375414771e17233f2 /src/bootstrap/toolstate.rs
parenta605441e049f0b6d5f7715b94b8ac4662fd7fcf6 (diff)
downloadrust-cbd1e73124dbd35cde4b5cafff127a4e54fef9fe.tar.gz
rust-cbd1e73124dbd35cde4b5cafff127a4e54fef9fe.zip
Set release channel on non-dist builders
Toolstate publication only runs if the channel is "nightly" and
previously the toolstate builders did not know that the channel was
nightly (since they are not dist builders).

A look through bootstrap seems to indicate that nothing should directly
depend on the channel being set to `-dev` on the test builders, though
this may cause some problems with UI tests (if for some reason they're
dumping the channel into stderr), but we cannot find evidence of such so
hopefully this is fine.
Diffstat (limited to 'src/bootstrap/toolstate.rs')
-rw-r--r--src/bootstrap/toolstate.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/toolstate.rs b/src/bootstrap/toolstate.rs
index a6d9ef38e57..b5ebf835506 100644
--- a/src/bootstrap/toolstate.rs
+++ b/src/bootstrap/toolstate.rs
@@ -13,13 +13,13 @@ use std::env;
 // Each cycle is 42 days long (6 weeks); the last week is 35..=42 then.
 const BETA_WEEK_START: u64 = 35;
 
-#[cfg(linux)]
+#[cfg(target_os = "linux")]
 const OS: Option<&str> = Some("linux");
 
 #[cfg(windows)]
 const OS: Option<&str> = Some("windows");
 
-#[cfg(all(not(linux), not(windows)))]
+#[cfg(all(not(target_os = "linux"), not(windows)))]
 const OS: Option<&str> = None;
 
 type ToolstateData = HashMap<Box<str>, ToolState>;
@@ -379,7 +379,7 @@ fn change_toolstate(
     let mut regressed = false;
     for repo_state in old_toolstate {
         let tool = &repo_state.tool;
-        let state = if cfg!(linux) {
+        let state = if cfg!(target_os = "linux") {
             &repo_state.linux
         } else if cfg!(windows) {
             &repo_state.windows