@@ -173,6 +173,7 @@ pub struct Config {
173
173
pub llvm_optimize : bool ,
174
174
pub llvm_thin_lto : bool ,
175
175
pub llvm_release_debuginfo : bool ,
176
+ pub llvm_strip_debuginfo : bool ,
176
177
pub llvm_static_stdcpp : bool ,
177
178
/// `None` if `llvm_from_ci` is true and we haven't yet downloaded llvm.
178
179
#[ cfg( not( test) ) ]
@@ -823,6 +824,7 @@ define_config! {
823
824
optimize: Option <bool > = "optimize" ,
824
825
thin_lto: Option <bool > = "thin-lto" ,
825
826
release_debuginfo: Option <bool > = "release-debuginfo" ,
827
+ strip_debuginfo: Option <bool > = "strip-debuginfo" ,
826
828
assertions: Option <bool > = "assertions" ,
827
829
tests: Option <bool > = "tests" ,
828
830
plugins: Option <bool > = "plugins" ,
@@ -1511,6 +1513,7 @@ impl Config {
1511
1513
config. llvm_clang = llvm. clang . unwrap_or ( false ) ;
1512
1514
config. llvm_enable_warnings = llvm. enable_warnings . unwrap_or ( false ) ;
1513
1515
config. llvm_build_config = llvm. build_config . clone ( ) . unwrap_or ( Default :: default ( ) ) ;
1516
+ config. llvm_strip_debuginfo = llvm. strip_debuginfo . unwrap_or ( false ) ;
1514
1517
1515
1518
let asserts = llvm_assertions. unwrap_or ( false ) ;
1516
1519
config. llvm_from_ci = match llvm. download_ci_llvm {
@@ -1552,6 +1555,7 @@ impl Config {
1552
1555
check_ci_llvm ! ( llvm. clang) ;
1553
1556
check_ci_llvm ! ( llvm. build_config) ;
1554
1557
check_ci_llvm ! ( llvm. plugins) ;
1558
+ check_ci_llvm ! ( llvm. strip_debuginfo) ;
1555
1559
}
1556
1560
1557
1561
// NOTE: can never be hit when downloading from CI, since we call `check_ci_llvm!(thin_lto)` above.
0 commit comments