@@ -99,10 +99,12 @@ pub struct Config {
99
99
pub rustc_parallel_queries : bool ,
100
100
pub rustc_default_linker : Option < String > ,
101
101
pub rust_optimize_tests : bool ,
102
+ pub rust_polly_tests : bool ,
102
103
pub rust_debuginfo_tests : bool ,
103
104
pub rust_dist_src : bool ,
104
105
pub rust_codegen_backends : Vec < Interned < String > > ,
105
106
pub rust_codegen_backends_dir : String ,
107
+ pub rust_polly_self : bool ,
106
108
107
109
pub build : Interned < String > ,
108
110
pub hosts : Vec < Interned < String > > ,
@@ -294,6 +296,7 @@ struct Rust {
294
296
rpath : Option < bool > ,
295
297
optimize_tests : Option < bool > ,
296
298
debuginfo_tests : Option < bool > ,
299
+ polly_tests : Option < bool > ,
297
300
codegen_tests : Option < bool > ,
298
301
ignore_git : Option < bool > ,
299
302
debug : Option < bool > ,
@@ -306,6 +309,7 @@ struct Rust {
306
309
wasm_syscall : Option < bool > ,
307
310
lld : Option < bool > ,
308
311
deny_warnings : Option < bool > ,
312
+ polly_self : Option < bool > ,
309
313
}
310
314
311
315
/// TOML representation of how each build target is configured.
@@ -515,6 +519,10 @@ impl Config {
515
519
ignore_git = rust. ignore_git ;
516
520
debug_jemalloc = rust. debug_jemalloc ;
517
521
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
522
+ set ( & mut config. rust_polly_tests , rust. polly_tests ) ;
523
+ if !config. rust_optimize_tests {
524
+ config. rust_polly_tests = false ;
525
+ }
518
526
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
519
527
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
520
528
set ( & mut config. rust_rpath , rust. rpath ) ;
@@ -545,6 +553,10 @@ impl Config {
545
553
Some ( n) => config. rust_codegen_units = Some ( n) ,
546
554
None => { }
547
555
}
556
+
557
+ config. rust_polly_self = rust
558
+ . polly_self
559
+ . unwrap_or ( false ) ;
548
560
}
549
561
550
562
if let Some ( ref t) = toml. target {
@@ -602,6 +614,10 @@ impl Config {
602
614
config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
603
615
config. rust_optimize = optimize. unwrap_or ( !default) ;
604
616
617
+ if !config. rust_optimize {
618
+ config. rust_polly_self = false ;
619
+ }
620
+
605
621
let default = config. channel == "dev" ;
606
622
config. ignore_git = ignore_git. unwrap_or ( default) ;
607
623
0 commit comments