File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1228,15 +1228,20 @@ impl Step for RustAnalyzer {
12281228 }
12291229
12301230 fn run ( self , builder : & Builder < ' _ > ) -> Option < GeneratedTarball > {
1231- let compiler = self . compiler ;
1231+ // let compiler = self.compiler;
12321232 let target = self . target ;
12331233
1234- let rust_analyzer = builder. ensure ( tool:: RustAnalyzer { compiler, target } ) ;
1234+ let rust_analyzer = builder
1235+ . out
1236+ . join ( "x86_64-unknown-linux-gnu" )
1237+ . join ( "stage1-tools-bin" )
1238+ . join ( "rust-analyzer" ) ;
1239+ //builder.ensure(tool::RustAnalyzer { compiler, target });
12351240
12361241 let mut tarball = Tarball :: new ( builder, "rust-analyzer" , & target. triple ) ;
12371242 tarball. set_overlay ( OverlayKind :: RustAnalyzer ) ;
12381243 tarball. is_preview ( true ) ;
1239- tarball. add_file ( & rust_analyzer. tool_path , "bin" , FileType :: Executable ) ;
1244+ tarball. add_file ( & rust_analyzer, "bin" , FileType :: Executable ) ;
12401245 tarball. add_legal_and_readme_to ( "share/doc/rust-analyzer" ) ;
12411246 Some ( tarball. generate ( ) )
12421247 }
Original file line number Diff line number Diff line change @@ -111,9 +111,18 @@ pub fn rustc_benchmarks(env: &Environment) -> CmdBuilder {
111111}
112112
113113pub fn rust_analyzer_benchmarks ( env : & Environment , ra_bin : & Utf8Path ) -> CmdBuilder {
114+ let ld_library_path = std:: env:: var ( "LD_LIBRARY_PATH" ) . unwrap_or_default ( ) ;
115+ let ld_library_path =
116+ format ! ( "{}:{ld_library_path}" , env. build_artifacts( ) . join( "stage2" ) . join( "lib" ) . as_str( ) ) ;
117+
118+ let path = std:: env:: var ( "PATH" ) . unwrap_or_default ( ) ;
119+ let path = format ! ( "{}:{path}" , env. build_artifacts( ) . join( "stage0" ) . join( "bin" ) . as_str( ) ) ;
120+
114121 CmdBuilder :: default ( )
115122 . arg ( ra_bin)
116123 . arg ( "analysis-stats" )
124+ . env ( "LD_LIBRARY_PATH" , & ld_library_path)
125+ . env ( "PATH" , & path)
117126 . arg ( env. checkout_path ( ) . join ( "src" ) . join ( "tools" ) . join ( "rust-analyzer" ) )
118127 . arg ( "--run-all-ide-things" )
119128}
You can’t perform that action at this time.
0 commit comments