@@ -107,12 +107,14 @@ pub struct Config {
107
107
pub rustc_parallel : bool ,
108
108
pub rustc_default_linker : Option < String > ,
109
109
pub rust_optimize_tests : bool ,
110
+ pub rust_polly_tests : bool ,
110
111
pub rust_dist_src : bool ,
111
112
pub rust_codegen_backends : Vec < Interned < String > > ,
112
113
pub rust_verify_llvm_ir : bool ,
113
114
pub rust_thin_lto_import_instr_limit : Option < u32 > ,
114
115
pub rust_remap_debuginfo : bool ,
115
116
pub rust_new_symbol_mangling : bool ,
117
+ pub rust_polly_self : bool ,
116
118
117
119
pub build : TargetSelection ,
118
120
pub hosts : Vec < TargetSelection > ,
@@ -394,6 +396,7 @@ struct Rust {
394
396
rpath : Option < bool > ,
395
397
verbose_tests : Option < bool > ,
396
398
optimize_tests : Option < bool > ,
399
+ polly_tests : Option < bool > ,
397
400
codegen_tests : Option < bool > ,
398
401
ignore_git : Option < bool > ,
399
402
dist_src : Option < bool > ,
@@ -412,6 +415,7 @@ struct Rust {
412
415
llvm_libunwind : Option < bool > ,
413
416
control_flow_guard : Option < bool > ,
414
417
new_symbol_mangling : Option < bool > ,
418
+ polly_self : Option < bool > ,
415
419
}
416
420
417
421
/// TOML representation of how each build target is configured.
@@ -641,6 +645,10 @@ impl Config {
641
645
ignore_git = rust. ignore_git ;
642
646
set ( & mut config. rust_new_symbol_mangling , rust. new_symbol_mangling ) ;
643
647
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
648
+ set ( & mut config. rust_polly_tests , rust. polly_tests ) ;
649
+ if !config. rust_optimize_tests {
650
+ config. rust_polly_tests = false ;
651
+ }
644
652
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
645
653
set ( & mut config. rust_rpath , rust. rpath ) ;
646
654
set ( & mut config. jemalloc , rust. jemalloc ) ;
@@ -675,6 +683,10 @@ impl Config {
675
683
676
684
config. rust_codegen_units = rust. codegen_units . map ( threads_from_config) ;
677
685
config. rust_codegen_units_std = rust. codegen_units_std . map ( threads_from_config) ;
686
+
687
+ config. rust_polly_self = rust
688
+ . polly_self
689
+ . unwrap_or ( false ) ;
678
690
}
679
691
680
692
if let Some ( ref t) = toml. target {
@@ -747,6 +759,10 @@ impl Config {
747
759
config. rust_debuginfo_level_tools = with_defaults ( debuginfo_level_tools) ;
748
760
config. rust_debuginfo_level_tests = debuginfo_level_tests. unwrap_or ( 0 ) ;
749
761
762
+ if !config. rust_optimize {
763
+ config. rust_polly_self = false ;
764
+ }
765
+
750
766
let default = config. channel == "dev" ;
751
767
config. ignore_git = ignore_git. unwrap_or ( default) ;
752
768
0 commit comments