aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-11 18:40:23 +0000
committerGitHub <[email protected]>2021-01-11 18:40:23 +0000
commit5a0b8a27148a078c07c15b98c73d809669051b6c (patch)
tree6e4d289a568d2673958f75371e45cf1d42e5e6fe
parent3aa153b46c2519ddb584454e71d672c810edec48 (diff)
parentc62f1c762f6d0f08b52a434466915d065c89a753 (diff)
Merge #7249
7249: Add build benchmark xtask command r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-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 }