File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1228,15 +1228,20 @@ impl Step for RustAnalyzer {
1228
1228
}
1229
1229
1230
1230
fn run ( self , builder : & Builder < ' _ > ) -> Option < GeneratedTarball > {
1231
- let compiler = self . compiler ;
1231
+ // let compiler = self.compiler;
1232
1232
let target = self . target ;
1233
1233
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 });
1235
1240
1236
1241
let mut tarball = Tarball :: new ( builder, "rust-analyzer" , & target. triple ) ;
1237
1242
tarball. set_overlay ( OverlayKind :: RustAnalyzer ) ;
1238
1243
tarball. is_preview ( true ) ;
1239
- tarball. add_file ( & rust_analyzer. tool_path , "bin" , FileType :: Executable ) ;
1244
+ tarball. add_file ( & rust_analyzer, "bin" , FileType :: Executable ) ;
1240
1245
tarball. add_legal_and_readme_to ( "share/doc/rust-analyzer" ) ;
1241
1246
Some ( tarball. generate ( ) )
1242
1247
}
Original file line number Diff line number Diff line change @@ -111,9 +111,14 @@ pub fn rustc_benchmarks(env: &Environment) -> CmdBuilder {
111
111
}
112
112
113
113
pub 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
+
114
118
CmdBuilder :: default ( )
115
119
. arg ( ra_bin)
116
120
. arg ( "analysis-stats" )
121
+ . env ( "LD_LIBRARY_PATH" , & ld_library_path)
117
122
. arg ( env. checkout_path ( ) . join ( "src" ) . join ( "tools" ) . join ( "rust-analyzer" ) )
118
123
. arg ( "--run-all-ide-things" )
119
124
}
You can’t perform that action at this time.
0 commit comments