@@ -949,6 +949,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
949949 let _ = fs:: remove_dir_all ( & exe) ;
950950 t ! ( fs:: create_dir_all( exe. join( "rustc" ) ) ) ;
951951 t ! ( fs:: create_dir_all( exe. join( "cargo" ) ) ) ;
952+ t ! ( fs:: create_dir_all( exe. join( "rls" ) ) ) ;
953+ t ! ( fs:: create_dir_all( exe. join( "rust-analysis" ) ) ) ;
952954 t ! ( fs:: create_dir_all( exe. join( "rust-docs" ) ) ) ;
953955 t ! ( fs:: create_dir_all( exe. join( "rust-std" ) ) ) ;
954956 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rustc" ) , target) )
@@ -963,11 +965,19 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
963965 cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-std" ) , target) )
964966 . join ( format ! ( "rust-std-{}" , target) ) ,
965967 & exe. join ( "rust-std" ) ) ;
968+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rls" ) , target) )
969+ . join ( "rls" ) ,
970+ & exe. join ( "rls" ) ) ;
971+ cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-analysis" ) , target) )
972+ . join ( format ! ( "rust-analysis-{}" , target) ) ,
973+ & exe. join ( "rust-analysis" ) ) ;
966974
967975 t ! ( fs:: remove_file( exe. join( "rustc/manifest.in" ) ) ) ;
968976 t ! ( fs:: remove_file( exe. join( "cargo/manifest.in" ) ) ) ;
969977 t ! ( fs:: remove_file( exe. join( "rust-docs/manifest.in" ) ) ) ;
970978 t ! ( fs:: remove_file( exe. join( "rust-std/manifest.in" ) ) ) ;
979+ t ! ( fs:: remove_file( exe. join( "rls/manifest.in" ) ) ) ;
980+ t ! ( fs:: remove_file( exe. join( "rust-analysis/manifest.in" ) ) ) ;
971981
972982 if target. contains ( "windows-gnu" ) {
973983 t ! ( fs:: create_dir_all( exe. join( "rust-mingw" ) ) ) ;
@@ -1041,6 +1051,26 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
10411051 . arg ( "-dr" ) . arg ( "Std" )
10421052 . arg ( "-var" ) . arg ( "var.StdDir" )
10431053 . arg ( "-out" ) . arg ( exe. join ( "StdGroup.wxs" ) ) ) ;
1054+ build. run ( Command :: new ( & heat)
1055+ . current_dir ( & exe)
1056+ . arg ( "dir" )
1057+ . arg ( "rls" )
1058+ . args ( & heat_flags)
1059+ . arg ( "-cg" ) . arg ( "RlsGroup" )
1060+ . arg ( "-dr" ) . arg ( "Rls" )
1061+ . arg ( "-var" ) . arg ( "var.RlsDir" )
1062+ . arg ( "-out" ) . arg ( exe. join ( "RlsGroup.wxs" ) )
1063+ . arg ( "-t" ) . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ) ;
1064+ build. run ( Command :: new ( & heat)
1065+ . current_dir ( & exe)
1066+ . arg ( "dir" )
1067+ . arg ( "rust-analysis" )
1068+ . args ( & heat_flags)
1069+ . arg ( "-cg" ) . arg ( "AnalysisGroup" )
1070+ . arg ( "-dr" ) . arg ( "Analysis" )
1071+ . arg ( "-var" ) . arg ( "var.AnalysisDir" )
1072+ . arg ( "-out" ) . arg ( exe. join ( "AnalysisGroup.wxs" ) )
1073+ . arg ( "-t" ) . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ) ;
10441074 if target. contains ( "windows-gnu" ) {
10451075 build. run ( Command :: new ( & heat)
10461076 . current_dir ( & exe)
@@ -1064,6 +1094,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
10641094 . arg ( "-dDocsDir=rust-docs" )
10651095 . arg ( "-dCargoDir=cargo" )
10661096 . arg ( "-dStdDir=rust-std" )
1097+ . arg ( "-dRlsDir=rls" )
1098+ . arg ( "-dAnalysisDir=rust-analysis" )
10671099 . arg ( "-arch" ) . arg ( & arch)
10681100 . arg ( "-out" ) . arg ( & output)
10691101 . arg ( & input) ;
@@ -1081,6 +1113,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
10811113 candle ( "DocsGroup.wxs" . as_ref ( ) ) ;
10821114 candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
10831115 candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1116+ candle ( "RlsGroup.wxs" . as_ref ( ) ) ;
1117+ candle ( "AnalysisGroup.wxs" . as_ref ( ) ) ;
10841118
10851119 if target. contains ( "windows-gnu" ) {
10861120 candle ( "GccGroup.wxs" . as_ref ( ) ) ;
@@ -1103,6 +1137,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
11031137 . arg ( "DocsGroup.wixobj" )
11041138 . arg ( "CargoGroup.wixobj" )
11051139 . arg ( "StdGroup.wixobj" )
1140+ . arg ( "RlsGroup.wixobj" )
1141+ . arg ( "AnalysisGroup.wixobj" )
11061142 . current_dir ( & exe) ;
11071143
11081144 if target. contains ( "windows-gnu" ) {
0 commit comments