@@ -1126,6 +1126,7 @@ impl Step for Extended {
11261126 compiler : builder. compiler ( stage, target) ,
11271127 } ) ;
11281128 let cargo_installer = builder. ensure ( Cargo { stage, target } ) ;
1129+ let rls_installer = builder. ensure ( Rls { stage, target } ) ;
11291130 let mingw_installer = builder. ensure ( Mingw { host : target } ) ;
11301131 let analysis_installer = builder. ensure ( Analysis {
11311132 compiler : builder. compiler ( stage, self . host ) ,
@@ -1155,7 +1156,7 @@ impl Step for Extended {
11551156 // upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
11561157 // the std files during uninstall. To do this ensure that rustc comes
11571158 // before rust-std in the list below.
1158- let mut tarballs = vec ! [ rustc_installer, cargo_installer,
1159+ let mut tarballs = vec ! [ rustc_installer, cargo_installer, rls_installer ,
11591160 analysis_installer, docs_installer, std_installer] ;
11601161 if target. contains ( "pc-windows-gnu" ) {
11611162 tarballs. push ( mingw_installer. unwrap ( ) ) ;
@@ -1202,6 +1203,8 @@ impl Step for Extended {
12021203 t ! ( fs:: create_dir_all( pkg. join( "cargo" ) ) ) ;
12031204 t ! ( fs:: create_dir_all( pkg. join( "rust-docs" ) ) ) ;
12041205 t ! ( fs:: create_dir_all( pkg. join( "rust-std" ) ) ) ;
1206+ t ! ( fs:: create_dir_all( pkg. join( "rls" ) ) ) ;
1207+ t ! ( fs:: create_dir_all( pkg. join( "rust-analysis" ) ) ) ;
12051208
12061209 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rustc" ) , target) ) ,
12071210 & pkg. join ( "rustc" ) ) ;
@@ -1211,11 +1214,17 @@ impl Step for Extended {
12111214 & pkg. join ( "rust-docs" ) ) ;
12121215 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-std" ) , target) ) ,
12131216 & pkg. join ( "rust-std" ) ) ;
1217+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rls" ) , target) ) ,
1218+ & pkg. join ( "rls" ) ) ;
1219+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-analysis" ) , target) ) ,
1220+ & pkg. join ( "rust-analysis" ) ) ;
12141221
12151222 install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rustc" ) , 0o755 ) ;
12161223 install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "cargo" ) , 0o755 ) ;
12171224 install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-docs" ) , 0o755 ) ;
12181225 install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-std" ) , 0o755 ) ;
1226+ install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rls" ) , 0o755 ) ;
1227+ install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-analysis" ) , 0o755 ) ;
12191228
12201229 let pkgbuild = |component : & str | {
12211230 let mut cmd = Command :: new ( "pkgbuild" ) ;
@@ -1229,6 +1238,8 @@ impl Step for Extended {
12291238 pkgbuild ( "cargo" ) ;
12301239 pkgbuild ( "rust-docs" ) ;
12311240 pkgbuild ( "rust-std" ) ;
1241+ pkgbuild ( "rls" ) ;
1242+ pkgbuild ( "rust-analysis" ) ;
12321243
12331244 // create an 'uninstall' package
12341245 install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "uninstall" ) , 0o755 ) ;
@@ -1252,6 +1263,8 @@ impl Step for Extended {
12521263 let _ = fs:: remove_dir_all ( & exe) ;
12531264 t ! ( fs:: create_dir_all( exe. join( "rustc" ) ) ) ;
12541265 t ! ( fs:: create_dir_all( exe. join( "cargo" ) ) ) ;
1266+ t ! ( fs:: create_dir_all( exe. join( "rls" ) ) ) ;
1267+ t ! ( fs:: create_dir_all( exe. join( "rust-analysis" ) ) ) ;
12551268 t ! ( fs:: create_dir_all( exe. join( "rust-docs" ) ) ) ;
12561269 t ! ( fs:: create_dir_all( exe. join( "rust-std" ) ) ) ;
12571270 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rustc" ) , target) )
@@ -1266,11 +1279,19 @@ impl Step for Extended {
12661279 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-std" ) , target) )
12671280 . join ( format ! ( "rust-std-{}" , target) ) ,
12681281 & exe. join ( "rust-std" ) ) ;
1282+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rls" ) , target) )
1283+ . join ( "rls" ) ,
1284+ & exe. join ( "rls" ) ) ;
1285+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-analysis" ) , target) )
1286+ . join ( format ! ( "rust-analysis-{}" , target) ) ,
1287+ & exe. join ( "rust-analysis" ) ) ;
12691288
12701289 t ! ( fs:: remove_file( exe. join( "rustc/manifest.in" ) ) ) ;
12711290 t ! ( fs:: remove_file( exe. join( "cargo/manifest.in" ) ) ) ;
12721291 t ! ( fs:: remove_file( exe. join( "rust-docs/manifest.in" ) ) ) ;
12731292 t ! ( fs:: remove_file( exe. join( "rust-std/manifest.in" ) ) ) ;
1293+ t ! ( fs:: remove_file( exe. join( "rls/manifest.in" ) ) ) ;
1294+ t ! ( fs:: remove_file( exe. join( "rust-analysis/manifest.in" ) ) ) ;
12741295
12751296 if target. contains ( "windows-gnu" ) {
12761297 t ! ( fs:: create_dir_all( exe. join( "rust-mingw" ) ) ) ;
@@ -1344,6 +1365,26 @@ impl Step for Extended {
13441365 . arg ( "-dr" ) . arg ( "Std" )
13451366 . arg ( "-var" ) . arg ( "var.StdDir" )
13461367 . arg ( "-out" ) . arg ( exe. join ( "StdGroup.wxs" ) ) ) ;
1368+ build. run ( Command :: new ( & heat)
1369+ . current_dir ( & exe)
1370+ . arg ( "dir" )
1371+ . arg ( "rls" )
1372+ . args ( & heat_flags)
1373+ . arg ( "-cg" ) . arg ( "RlsGroup" )
1374+ . arg ( "-dr" ) . arg ( "Rls" )
1375+ . arg ( "-var" ) . arg ( "var.RlsDir" )
1376+ . arg ( "-out" ) . arg ( exe. join ( "RlsGroup.wxs" ) )
1377+ . arg ( "-t" ) . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ) ;
1378+ build. run ( Command :: new ( & heat)
1379+ . current_dir ( & exe)
1380+ . arg ( "dir" )
1381+ . arg ( "rust-analysis" )
1382+ . args ( & heat_flags)
1383+ . arg ( "-cg" ) . arg ( "AnalysisGroup" )
1384+ . arg ( "-dr" ) . arg ( "Analysis" )
1385+ . arg ( "-var" ) . arg ( "var.AnalysisDir" )
1386+ . arg ( "-out" ) . arg ( exe. join ( "AnalysisGroup.wxs" ) )
1387+ . arg ( "-t" ) . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ) ;
13471388 if target. contains ( "windows-gnu" ) {
13481389 build. run ( Command :: new ( & heat)
13491390 . current_dir ( & exe)
@@ -1367,6 +1408,8 @@ impl Step for Extended {
13671408 . arg ( "-dDocsDir=rust-docs" )
13681409 . arg ( "-dCargoDir=cargo" )
13691410 . arg ( "-dStdDir=rust-std" )
1411+ . arg ( "-dRlsDir=rls" )
1412+ . arg ( "-dAnalysisDir=rust-analysis" )
13701413 . arg ( "-arch" ) . arg ( & arch)
13711414 . arg ( "-out" ) . arg ( & output)
13721415 . arg ( & input) ;
@@ -1384,6 +1427,8 @@ impl Step for Extended {
13841427 candle ( "DocsGroup.wxs" . as_ref ( ) ) ;
13851428 candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
13861429 candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1430+ candle ( "RlsGroup.wxs" . as_ref ( ) ) ;
1431+ candle ( "AnalysisGroup.wxs" . as_ref ( ) ) ;
13871432
13881433 if target. contains ( "windows-gnu" ) {
13891434 candle ( "GccGroup.wxs" . as_ref ( ) ) ;
@@ -1406,6 +1451,8 @@ impl Step for Extended {
14061451 . arg ( "DocsGroup.wixobj" )
14071452 . arg ( "CargoGroup.wixobj" )
14081453 . arg ( "StdGroup.wixobj" )
1454+ . arg ( "RlsGroup.wixobj" )
1455+ . arg ( "AnalysisGroup.wixobj" )
14091456 . current_dir ( & exe) ;
14101457
14111458 if target. contains ( "windows-gnu" ) {
@@ -1490,6 +1537,7 @@ impl Step for HashSign {
14901537 cmd. arg ( today. trim ( ) ) ;
14911538 cmd. arg ( build. rust_package_vers ( ) ) ;
14921539 cmd. arg ( build. package_vers ( & build. release_num ( "cargo" ) ) ) ;
1540+ cmd. arg ( build. package_vers ( & build. release_num ( "rls" ) ) ) ;
14931541 cmd. arg ( addr) ;
14941542
14951543 t ! ( fs:: create_dir_all( distdir( build) ) ) ;
0 commit comments