about summary refs log tree commit diff
path: root/xtask
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-10 23:35:38 +0000
committerbors <bors@rust-lang.org>2022-06-10 23:35:38 +0000
commitba329913fa33c29d4ccabf46998d3a0cfac57b0c (patch)
tree94e89bca0d087530da1130690f6dda4fb0d643ef /xtask
parent9ef01d0895bb1fef141d9c781519ca03f94c5e85 (diff)
parenta2a3ea86eaafdc3bb6287e836a42deadcd02637b (diff)
Auto merge of #12449 - Veykril:version, r=Veykril
Bring the version command output in line with other rust tools

Inspired by how cargo handles it
Fixes https://github.com/rust-lang/rust-analyzer/issues/12280
![image](https://user-images.githubusercontent.com/3757771/171680176-236451ee-2c6c-449f-8aa5-4a047e8cc907.png)
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/dist.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index 2ea452377ee..c82867d3b4d 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -72,7 +72,8 @@ fn dist_client(
 }
 
 fn dist_server(sh: &Shell, release_channel: &str, target: &Target) -> anyhow::Result<()> {
-    let _e = sh.push_env("RUST_ANALYZER_CHANNEL", release_channel);
+    let _e = sh.push_env("CFG_RELEASE_CHANNEL", release_channel);
+    let _e = sh.push_env("CFG_RELEASE", "0.0.0");
     let _e = sh.push_env("CARGO_PROFILE_RELEASE_LTO", "thin");
 
     // Uncomment to enable debug info for releases. Note that: