@@ -104,12 +104,14 @@ pub struct Config {
104
104
pub rustc_parallel_queries : bool ,
105
105
pub rustc_default_linker : Option < String > ,
106
106
pub rust_optimize_tests : bool ,
107
+ pub rust_polly_tests : bool ,
107
108
pub rust_debuginfo_tests : bool ,
108
109
pub rust_dist_src : bool ,
109
110
pub rust_codegen_backends : Vec < Interned < String > > ,
110
111
pub rust_codegen_backends_dir : String ,
111
112
pub rust_verify_llvm_ir : bool ,
112
113
pub rust_remap_debuginfo : bool ,
114
+ pub rust_polly_self : bool ,
113
115
114
116
pub build : Interned < String > ,
115
117
pub hosts : Vec < Interned < String > > ,
@@ -309,6 +311,7 @@ struct Rust {
309
311
rpath : Option < bool > ,
310
312
optimize_tests : Option < bool > ,
311
313
debuginfo_tests : Option < bool > ,
314
+ polly_tests : Option < bool > ,
312
315
codegen_tests : Option < bool > ,
313
316
ignore_git : Option < bool > ,
314
317
debug : Option < bool > ,
@@ -327,6 +330,7 @@ struct Rust {
327
330
backtrace_on_ice : Option < bool > ,
328
331
verify_llvm_ir : Option < bool > ,
329
332
remap_debuginfo : Option < bool > ,
333
+ polly_self : Option < bool > ,
330
334
}
331
335
332
336
/// TOML representation of how each build target is configured.
@@ -541,6 +545,10 @@ impl Config {
541
545
ignore_git = rust. ignore_git ;
542
546
debug_jemalloc = rust. debug_jemalloc ;
543
547
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
548
+ set ( & mut config. rust_polly_tests , rust. polly_tests ) ;
549
+ if !config. rust_optimize_tests {
550
+ config. rust_polly_tests = false ;
551
+ }
544
552
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
545
553
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
546
554
set ( & mut config. rust_rpath , rust. rpath ) ;
@@ -580,6 +588,10 @@ impl Config {
580
588
Some ( n) => config. rust_codegen_units = Some ( n) ,
581
589
None => { }
582
590
}
591
+
592
+ config. rust_polly_self = rust
593
+ . polly_self
594
+ . unwrap_or ( false ) ;
583
595
}
584
596
585
597
if let Some ( ref t) = toml. target {
@@ -644,6 +656,10 @@ impl Config {
644
656
config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
645
657
config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
646
658
659
+ if !config. rust_optimize {
660
+ config. rust_polly_self = false ;
661
+ }
662
+
647
663
let default = config. channel == "dev" ;
648
664
config. ignore_git = ignore_git. unwrap_or ( default) ;
649
665
0 commit comments