@@ -218,6 +218,7 @@ pub struct Config {
218218 pub llvm_thin_lto : bool ,
219219 pub llvm_release_debuginfo : bool ,
220220 pub llvm_static_stdcpp : bool ,
221+ pub llvm_libzstd : bool ,
221222 /// `None` if `llvm_from_ci` is true and we haven't yet downloaded llvm.
222223 #[ cfg( not( test) ) ]
223224 llvm_link_shared : Cell < Option < bool > > ,
@@ -280,7 +281,6 @@ pub struct Config {
280281 pub llvm_profile_use : Option < String > ,
281282 pub llvm_profile_generate : bool ,
282283 pub llvm_libunwind_default : Option < LlvmLibunwind > ,
283- pub llvm_libzstd_default : Option < bool > ,
284284 pub enable_bolt_settings : bool ,
285285
286286 pub reproducible_artifacts : Vec < String > ,
@@ -551,7 +551,6 @@ pub struct Target {
551551 /// Some(path to FileCheck) if one was specified.
552552 pub llvm_filecheck : Option < PathBuf > ,
553553 pub llvm_libunwind : Option < LlvmLibunwind > ,
554- pub llvm_libzstd : Option < bool > ,
555554 pub cc : Option < PathBuf > ,
556555 pub cxx : Option < PathBuf > ,
557556 pub ar : Option < PathBuf > ,
@@ -880,6 +879,7 @@ define_config! {
880879 plugins: Option <bool > = "plugins" ,
881880 ccache: Option <StringOrBool > = "ccache" ,
882881 static_libstdcpp: Option <bool > = "static-libstdcpp" ,
882+ libzstd: Option <bool > = "libzstd" ,
883883 ninja: Option <bool > = "ninja" ,
884884 targets: Option <String > = "targets" ,
885885 experimental_targets: Option <String > = "experimental-targets" ,
@@ -1108,7 +1108,6 @@ define_config! {
11081108 jemalloc: Option <bool > = "jemalloc" ,
11091109 test_compare_mode: Option <bool > = "test-compare-mode" ,
11101110 llvm_libunwind: Option <String > = "llvm-libunwind" ,
1111- llvm_libzstd: Option <bool > = "llvm-libzstd" ,
11121111 control_flow_guard: Option <bool > = "control-flow-guard" ,
11131112 ehcont_guard: Option <bool > = "ehcont-guard" ,
11141113 new_symbol_mangling: Option <bool > = "new-symbol-mangling" ,
@@ -1135,7 +1134,6 @@ define_config! {
11351134 llvm_has_rust_patches: Option <bool > = "llvm-has-rust-patches" ,
11361135 llvm_filecheck: Option <String > = "llvm-filecheck" ,
11371136 llvm_libunwind: Option <String > = "llvm-libunwind" ,
1138- llvm_libzstd: Option <bool > = "llvm-libzstd" ,
11391137 sanitizers: Option <bool > = "sanitizers" ,
11401138 profiler: Option <StringOrBool > = "profiler" ,
11411139 rpath: Option <bool > = "rpath" ,
@@ -1157,6 +1155,7 @@ impl Config {
11571155 llvm_optimize : true ,
11581156 ninja_in_file : true ,
11591157 llvm_static_stdcpp : false ,
1158+ llvm_libzstd : false ,
11601159 backtrace : true ,
11611160 rust_optimize : RustOptimize :: Bool ( true ) ,
11621161 rust_optimize_tests : true ,
@@ -1637,7 +1636,6 @@ impl Config {
16371636 jemalloc,
16381637 test_compare_mode,
16391638 llvm_libunwind,
1640- llvm_libzstd,
16411639 control_flow_guard,
16421640 ehcont_guard,
16431641 new_symbol_mangling,
@@ -1724,7 +1722,6 @@ impl Config {
17241722 set ( & mut config. ehcont_guard , ehcont_guard) ;
17251723 config. llvm_libunwind_default =
17261724 llvm_libunwind. map ( |v| v. parse ( ) . expect ( "failed to parse rust.llvm-libunwind" ) ) ;
1727- config. llvm_libzstd_default = llvm_libzstd;
17281725
17291726 if let Some ( ref backends) = codegen_backends {
17301727 let available_backends = [ "llvm" , "cranelift" , "gcc" ] ;
@@ -1793,6 +1790,7 @@ impl Config {
17931790 plugins,
17941791 ccache,
17951792 static_libstdcpp,
1793+ libzstd,
17961794 ninja,
17971795 targets,
17981796 experimental_targets,
@@ -1827,6 +1825,7 @@ impl Config {
18271825 set ( & mut config. llvm_thin_lto , thin_lto) ;
18281826 set ( & mut config. llvm_release_debuginfo , release_debuginfo) ;
18291827 set ( & mut config. llvm_static_stdcpp , static_libstdcpp) ;
1828+ set ( & mut config. llvm_libzstd , libzstd) ;
18301829 if let Some ( v) = link_shared {
18311830 config. llvm_link_shared . set ( Some ( v) ) ;
18321831 }
@@ -1877,6 +1876,7 @@ impl Config {
18771876 check_ci_llvm ! ( optimize_toml) ;
18781877 check_ci_llvm ! ( thin_lto) ;
18791878 check_ci_llvm ! ( release_debuginfo) ;
1879+ //check_ci_llvm!(libzstd);
18801880 check_ci_llvm ! ( targets) ;
18811881 check_ci_llvm ! ( experimental_targets) ;
18821882 check_ci_llvm ! ( clang_cl) ;
@@ -1931,7 +1931,6 @@ impl Config {
19311931 panic ! ( "failed to parse target.{triple}.llvm-libunwind" )
19321932 } )
19331933 } ) ;
1934- target. llvm_libzstd = cfg. llvm_libzstd ;
19351934 if let Some ( s) = cfg. no_std {
19361935 target. no_std = s;
19371936 }
@@ -2418,14 +2417,6 @@ impl Config {
24182417 } )
24192418 }
24202419
2421- pub fn llvm_libzstd ( & self , target : TargetSelection ) -> bool {
2422- self . target_config
2423- . get ( & target)
2424- . and_then ( |t| t. llvm_libzstd )
2425- . or ( self . llvm_libzstd_default )
2426- . unwrap_or ( target. contains ( "linux" ) )
2427- }
2428-
24292420 pub fn split_debuginfo ( & self , target : TargetSelection ) -> SplitDebuginfo {
24302421 self . target_config
24312422 . get ( & target)
@@ -2730,7 +2721,6 @@ fn check_incompatible_options_for_ci_rustc(rust: &Rust) -> Result<(), String> {
27302721 remap_debuginfo : _,
27312722 test_compare_mode : _,
27322723 llvm_libunwind : _,
2733- llvm_libzstd : _,
27342724 control_flow_guard : _,
27352725 ehcont_guard : _,
27362726 new_symbol_mangling : _,
0 commit comments