aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 3e07daae9..dec48629c 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -12,7 +12,7 @@ use std::env;
12 12
13use codegen::CodegenCmd; 13use codegen::CodegenCmd;
14use pico_args::Arguments; 14use pico_args::Arguments;
15use xshell::pushd; 15use xshell::{cmd, cp, pushd};
16use xtask::{ 16use xtask::{
17 codegen::{self, Mode}, 17 codegen::{self, Mode},
18 dist::DistCmd, 18 dist::DistCmd,
@@ -124,6 +124,13 @@ FLAGS:
124 args.finish()?; 124 args.finish()?;
125 MetricsCmd { dry_run }.run() 125 MetricsCmd { dry_run }.run()
126 } 126 }
127 "bb" => {
128 let suffix: String = args.free_from_str()?.unwrap();
129 args.finish()?;
130 cmd!("cargo build --release").run()?;
131 cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?;
132 Ok(())
133 }
127 _ => { 134 _ => {
128 eprintln!( 135 eprintln!(
129 "\ 136 "\
@@ -141,7 +148,8 @@ SUBCOMMANDS:
141 install 148 install
142 lint 149 lint
143 dist 150 dist
144 promote" 151 promote
152 bb"
145 ); 153 );
146 Ok(()) 154 Ok(())
147 } 155 }