@@ -40,7 +40,7 @@ fn pkgname(build: &Build, component: &str) -> String {
40
40
if component == "cargo" {
41
41
format ! ( "{}-{}" , component, build. cargo_package_vers( ) )
42
42
} else {
43
- assert ! ( component. starts_with( "rust" ) ) ;
43
+ assert ! ( component. starts_with( "rust" ) || component == "rls" ) ;
44
44
format ! ( "{}-{}" , component, build. rust_package_vers( ) )
45
45
}
46
46
}
@@ -540,7 +540,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
540
540
541
541
let src = build. src . join ( "cargo" ) ;
542
542
let etc = src. join ( "src/etc" ) ;
543
- let release_num = build. cargo_release_num ( ) ;
543
+ let release_num = build. release_num ( "cargo" ) ;
544
544
let name = pkgname ( build, "cargo" ) ;
545
545
let version = build. cargo_info . version ( build, & release_num) ;
546
546
@@ -599,7 +599,7 @@ pub fn rls(build: &Build, stage: u32, target: &str) {
599
599
let compiler = Compiler :: new ( stage, & build. config . build ) ;
600
600
601
601
let src = build. src . join ( "rls" ) ;
602
- let release_num = build. rls_release_num ( ) ;
602
+ let release_num = build. release_num ( "rls" ) ;
603
603
let name = format ! ( "rls-{}" , build. package_vers( & release_num) ) ;
604
604
605
605
let tmp = tmpdir ( build) ;
@@ -642,8 +642,9 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
642
642
let cargo_installer = dist. join ( format ! ( "{}-{}.tar.gz" ,
643
643
pkgname( build, "cargo" ) ,
644
644
target) ) ;
645
- let rls_installer = dist. join ( format ! ( "{}.tar.gz" ,
646
- pkgname( build, "rls" ) ) ) ;
645
+ let rls_installer = dist. join ( format ! ( "{}-{}.tar.gz" ,
646
+ pkgname( build, "rls" ) ,
647
+ target) ) ;
647
648
let analysis_installer = dist. join ( format ! ( "{}-{}.tar.gz" ,
648
649
pkgname( build, "rust-analysis" ) ,
649
650
target) ) ;
@@ -720,28 +721,20 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
720
721
let _ = fs:: remove_dir_all ( & pkg) ;
721
722
t ! ( fs:: create_dir_all( pkg. join( "rustc" ) ) ) ;
722
723
t ! ( fs:: create_dir_all( pkg. join( "cargo" ) ) ) ;
723
- t ! ( fs:: create_dir_all( pkg. join( "rls" ) ) ) ;
724
- t ! ( fs:: create_dir_all( pkg. join( "rust-analysis" ) ) ) ;
725
724
t ! ( fs:: create_dir_all( pkg. join( "rust-docs" ) ) ) ;
726
725
t ! ( fs:: create_dir_all( pkg. join( "rust-std" ) ) ) ;
727
726
728
727
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rustc" ) , target) ) ,
729
728
& pkg. join ( "rustc" ) ) ;
730
729
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "cargo" ) , target) ) ,
731
730
& pkg. join ( "cargo" ) ) ;
732
- cp_r ( & work. join ( pkgname ( build, "rls" ) ) ,
733
- & pkg. join ( "rls" ) ) ;
734
- cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-analysis" ) , target) ) ,
735
- & pkg. join ( "rust-analysis" ) ) ;
736
731
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-docs" ) , target) ) ,
737
732
& pkg. join ( "rust-docs" ) ) ;
738
733
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-std" ) , target) ) ,
739
734
& pkg. join ( "rust-std" ) ) ;
740
735
741
736
install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rustc" ) , 0o755 ) ;
742
737
install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "cargo" ) , 0o755 ) ;
743
- install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rls" ) , 0o755 ) ;
744
- install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-analysis" ) , 0o755 ) ;
745
738
install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-docs" ) , 0o755 ) ;
746
739
install ( & etc. join ( "pkg/postinstall" ) , & pkg. join ( "rust-std" ) , 0o755 ) ;
747
740
@@ -755,8 +748,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
755
748
} ;
756
749
pkgbuild ( "rustc" ) ;
757
750
pkgbuild ( "cargo" ) ;
758
- pkgbuild ( "rls" ) ;
759
- pkgbuild ( "rust-analysis" ) ;
760
751
pkgbuild ( "rust-docs" ) ;
761
752
pkgbuild ( "rust-std" ) ;
762
753
@@ -782,8 +773,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
782
773
let _ = fs:: remove_dir_all ( & exe) ;
783
774
t ! ( fs:: create_dir_all( exe. join( "rustc" ) ) ) ;
784
775
t ! ( fs:: create_dir_all( exe. join( "cargo" ) ) ) ;
785
- t ! ( fs:: create_dir_all( exe. join( "rls" ) ) ) ;
786
- t ! ( fs:: create_dir_all( exe. join( "rust-analysis" ) ) ) ;
787
776
t ! ( fs:: create_dir_all( exe. join( "rust-docs" ) ) ) ;
788
777
t ! ( fs:: create_dir_all( exe. join( "rust-std" ) ) ) ;
789
778
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rustc" ) , target) )
@@ -792,12 +781,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
792
781
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "cargo" ) , target) )
793
782
. join ( "cargo" ) ,
794
783
& exe. join ( "cargo" ) ) ;
795
- cp_r ( & work. join ( pkgname ( build, "rls" ) )
796
- . join ( "rls" ) ,
797
- & exe. join ( "rls" ) ) ;
798
- cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-analysis" ) , target) )
799
- . join ( "rust-analysis" ) ,
800
- & exe. join ( "rust-analysis" ) ) ;
801
784
cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, "rust-docs" ) , target) )
802
785
. join ( "rust-docs" ) ,
803
786
& exe. join ( "rust-docs" ) ) ;
@@ -807,8 +790,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
807
790
808
791
t ! ( fs:: remove_file( exe. join( "rustc/manifest.in" ) ) ) ;
809
792
t ! ( fs:: remove_file( exe. join( "cargo/manifest.in" ) ) ) ;
810
- t ! ( fs:: remove_file( exe. join( "rls/manifest.in" ) ) ) ;
811
- t ! ( fs:: remove_file( exe. join( "rust-analysis/manifest.in" ) ) ) ;
812
793
t ! ( fs:: remove_file( exe. join( "rust-docs/manifest.in" ) ) ) ;
813
794
t ! ( fs:: remove_file( exe. join( "rust-std/manifest.in" ) ) ) ;
814
795
@@ -865,26 +846,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
865
846
. arg ( "-var" ) . arg ( "var.DocsDir" )
866
847
. arg ( "-out" ) . arg ( exe. join ( "DocsGroup.wxs" ) )
867
848
. arg ( "-t" ) . arg ( etc. join ( "msi/squash-components.xsl" ) ) ) ;
868
- build. run ( Command :: new ( & heat)
869
- . current_dir ( & exe)
870
- . arg ( "dir" )
871
- . arg ( "rls" )
872
- . args ( & heat_flags)
873
- . arg ( "-cg" ) . arg ( "RlsGroup" )
874
- . arg ( "-dr" ) . arg ( "Rls" )
875
- . arg ( "-var" ) . arg ( "var.RlsDir" )
876
- . arg ( "-out" ) . arg ( exe. join ( "RlsGroup.wxs" ) )
877
- . arg ( "-t" ) . arg ( etc. join ( "msi/squash-components.xsl" ) ) ) ;
878
- build. run ( Command :: new ( & heat)
879
- . current_dir ( & exe)
880
- . arg ( "dir" )
881
- . arg ( "rust-analysis" )
882
- . args ( & heat_flags)
883
- . arg ( "-cg" ) . arg ( "AnalysisGroup" )
884
- . arg ( "-dr" ) . arg ( "Analysis" )
885
- . arg ( "-var" ) . arg ( "var.AnalysisDir" )
886
- . arg ( "-out" ) . arg ( exe. join ( "AnalysisGroup.wxs" ) )
887
- . arg ( "-t" ) . arg ( etc. join ( "msi/squash-components.xsl" ) ) ) ;
888
849
build. run ( Command :: new ( & heat)
889
850
. current_dir ( & exe)
890
851
. arg ( "dir" )
@@ -925,8 +886,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
925
886
. arg ( "-nologo" )
926
887
. arg ( "-dRustcDir=rustc" )
927
888
. arg ( "-dDocsDir=rust-docs" )
928
- . arg ( "-dRlsDir=rls" )
929
- . arg ( "-dAnalysisDir=rust-analysis" )
930
889
. arg ( "-dCargoDir=cargo" )
931
890
. arg ( "-dStdDir=rust-std" )
932
891
. arg ( "-arch" ) . arg ( & arch)
@@ -944,8 +903,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
944
903
candle ( & etc. join ( "msi/rustwelcomedlg.wxs" ) ) ;
945
904
candle ( "RustcGroup.wxs" . as_ref ( ) ) ;
946
905
candle ( "DocsGroup.wxs" . as_ref ( ) ) ;
947
- candle ( "RlsGroup.wxs" . as_ref ( ) ) ;
948
- candle ( "AnalysisGroup.wxs" . as_ref ( ) ) ;
949
906
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
950
907
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
951
908
@@ -968,8 +925,6 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
968
925
. arg ( "rustwelcomedlg.wixobj" )
969
926
. arg ( "RustcGroup.wixobj" )
970
927
. arg ( "DocsGroup.wixobj" )
971
- . arg ( "RlsGroup.wixobj" )
972
- . arg ( "AnalysisGroup.wixobj" )
973
928
. arg ( "CargoGroup.wixobj" )
974
929
. arg ( "StdGroup.wixobj" )
975
930
. current_dir ( & exe) ;
@@ -1037,7 +992,7 @@ pub fn hash_and_sign(build: &Build) {
1037
992
cmd. arg ( distdir ( build) ) ;
1038
993
cmd. arg ( today. trim ( ) ) ;
1039
994
cmd. arg ( build. rust_package_vers ( ) ) ;
1040
- cmd. arg ( build. package_vers ( & build. cargo_release_num ( ) ) ) ;
995
+ cmd. arg ( build. package_vers ( & build. release_num ( "cargo" ) ) ) ;
1041
996
cmd. arg ( addr) ;
1042
997
1043
998
t ! ( fs:: create_dir_all( distdir( build) ) ) ;
0 commit comments