@@ -218,6 +218,7 @@ pub struct Config {
218
218
pub llvm_thin_lto : bool ,
219
219
pub llvm_release_debuginfo : bool ,
220
220
pub llvm_static_stdcpp : bool ,
221
+ pub llvm_libzstd : bool ,
221
222
/// `None` if `llvm_from_ci` is true and we haven't yet downloaded llvm.
222
223
#[ cfg( not( test) ) ]
223
224
llvm_link_shared : Cell < Option < bool > > ,
@@ -280,7 +281,6 @@ pub struct Config {
280
281
pub llvm_profile_use : Option < String > ,
281
282
pub llvm_profile_generate : bool ,
282
283
pub llvm_libunwind_default : Option < LlvmLibunwind > ,
283
- pub llvm_libzstd_default : Option < bool > ,
284
284
pub enable_bolt_settings : bool ,
285
285
286
286
pub reproducible_artifacts : Vec < String > ,
@@ -551,7 +551,6 @@ pub struct Target {
551
551
/// Some(path to FileCheck) if one was specified.
552
552
pub llvm_filecheck : Option < PathBuf > ,
553
553
pub llvm_libunwind : Option < LlvmLibunwind > ,
554
- pub llvm_libzstd : Option < bool > ,
555
554
pub cc : Option < PathBuf > ,
556
555
pub cxx : Option < PathBuf > ,
557
556
pub ar : Option < PathBuf > ,
@@ -880,6 +879,7 @@ define_config! {
880
879
plugins: Option <bool > = "plugins" ,
881
880
ccache: Option <StringOrBool > = "ccache" ,
882
881
static_libstdcpp: Option <bool > = "static-libstdcpp" ,
882
+ libzstd: Option <bool > = "libzstd" ,
883
883
ninja: Option <bool > = "ninja" ,
884
884
targets: Option <String > = "targets" ,
885
885
experimental_targets: Option <String > = "experimental-targets" ,
@@ -1108,7 +1108,6 @@ define_config! {
1108
1108
jemalloc: Option <bool > = "jemalloc" ,
1109
1109
test_compare_mode: Option <bool > = "test-compare-mode" ,
1110
1110
llvm_libunwind: Option <String > = "llvm-libunwind" ,
1111
- llvm_libzstd: Option <bool > = "llvm-libzstd" ,
1112
1111
control_flow_guard: Option <bool > = "control-flow-guard" ,
1113
1112
ehcont_guard: Option <bool > = "ehcont-guard" ,
1114
1113
new_symbol_mangling: Option <bool > = "new-symbol-mangling" ,
@@ -1135,7 +1134,6 @@ define_config! {
1135
1134
llvm_has_rust_patches: Option <bool > = "llvm-has-rust-patches" ,
1136
1135
llvm_filecheck: Option <String > = "llvm-filecheck" ,
1137
1136
llvm_libunwind: Option <String > = "llvm-libunwind" ,
1138
- llvm_libzstd: Option <bool > = "llvm-libzstd" ,
1139
1137
sanitizers: Option <bool > = "sanitizers" ,
1140
1138
profiler: Option <StringOrBool > = "profiler" ,
1141
1139
rpath: Option <bool > = "rpath" ,
@@ -1157,6 +1155,7 @@ impl Config {
1157
1155
llvm_optimize : true ,
1158
1156
ninja_in_file : true ,
1159
1157
llvm_static_stdcpp : false ,
1158
+ llvm_libzstd : false ,
1160
1159
backtrace : true ,
1161
1160
rust_optimize : RustOptimize :: Bool ( true ) ,
1162
1161
rust_optimize_tests : true ,
@@ -1637,7 +1636,6 @@ impl Config {
1637
1636
jemalloc,
1638
1637
test_compare_mode,
1639
1638
llvm_libunwind,
1640
- llvm_libzstd,
1641
1639
control_flow_guard,
1642
1640
ehcont_guard,
1643
1641
new_symbol_mangling,
@@ -1724,7 +1722,6 @@ impl Config {
1724
1722
set ( & mut config. ehcont_guard , ehcont_guard) ;
1725
1723
config. llvm_libunwind_default =
1726
1724
llvm_libunwind. map ( |v| v. parse ( ) . expect ( "failed to parse rust.llvm-libunwind" ) ) ;
1727
- config. llvm_libzstd_default = llvm_libzstd;
1728
1725
1729
1726
if let Some ( ref backends) = codegen_backends {
1730
1727
let available_backends = [ "llvm" , "cranelift" , "gcc" ] ;
@@ -1793,6 +1790,7 @@ impl Config {
1793
1790
plugins,
1794
1791
ccache,
1795
1792
static_libstdcpp,
1793
+ libzstd,
1796
1794
ninja,
1797
1795
targets,
1798
1796
experimental_targets,
@@ -1827,6 +1825,7 @@ impl Config {
1827
1825
set ( & mut config. llvm_thin_lto , thin_lto) ;
1828
1826
set ( & mut config. llvm_release_debuginfo , release_debuginfo) ;
1829
1827
set ( & mut config. llvm_static_stdcpp , static_libstdcpp) ;
1828
+ set ( & mut config. llvm_libzstd , libzstd) ;
1830
1829
if let Some ( v) = link_shared {
1831
1830
config. llvm_link_shared . set ( Some ( v) ) ;
1832
1831
}
@@ -1877,6 +1876,7 @@ impl Config {
1877
1876
check_ci_llvm ! ( optimize_toml) ;
1878
1877
check_ci_llvm ! ( thin_lto) ;
1879
1878
check_ci_llvm ! ( release_debuginfo) ;
1879
+ //check_ci_llvm!(libzstd);
1880
1880
check_ci_llvm ! ( targets) ;
1881
1881
check_ci_llvm ! ( experimental_targets) ;
1882
1882
check_ci_llvm ! ( clang_cl) ;
@@ -1931,7 +1931,6 @@ impl Config {
1931
1931
panic ! ( "failed to parse target.{triple}.llvm-libunwind" )
1932
1932
} )
1933
1933
} ) ;
1934
- target. llvm_libzstd = cfg. llvm_libzstd ;
1935
1934
if let Some ( s) = cfg. no_std {
1936
1935
target. no_std = s;
1937
1936
}
@@ -2418,14 +2417,6 @@ impl Config {
2418
2417
} )
2419
2418
}
2420
2419
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
-
2429
2420
pub fn split_debuginfo ( & self , target : TargetSelection ) -> SplitDebuginfo {
2430
2421
self . target_config
2431
2422
. get ( & target)
@@ -2730,7 +2721,6 @@ fn check_incompatible_options_for_ci_rustc(rust: &Rust) -> Result<(), String> {
2730
2721
remap_debuginfo : _,
2731
2722
test_compare_mode : _,
2732
2723
llvm_libunwind : _,
2733
- llvm_libzstd : _,
2734
2724
control_flow_guard : _,
2735
2725
ehcont_guard : _,
2736
2726
new_symbol_mangling : _,
0 commit comments