File tree 4 files changed +18
-2
lines changed
ci/docker/x86_64-gnu-nopt
4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 400
400
# override the default allocator for rustc and LLVM.
401
401
#jemalloc = false
402
402
403
+ # Run tests in various test suites with the "nll compare mode" in addition to
404
+ # running the tests in normal mode. Largely only used on CI and during local
405
+ # development of NLL
406
+ #test-compare-mode = false
407
+
403
408
# =============================================================================
404
409
# Options for specific targets
405
410
#
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ pub struct Config {
58
58
pub ignore_git : bool ,
59
59
pub exclude : Vec < PathBuf > ,
60
60
pub rustc_error_format : Option < String > ,
61
+ pub test_compare_mode : bool ,
61
62
62
63
pub run_host_only : bool ,
63
64
@@ -326,6 +327,7 @@ struct Rust {
326
327
verify_llvm_ir : Option < bool > ,
327
328
remap_debuginfo : Option < bool > ,
328
329
jemalloc : Option < bool > ,
330
+ test_compare_mode : Option < bool > ,
329
331
}
330
332
331
333
/// TOML representation of how each build target is configured.
@@ -540,6 +542,7 @@ impl Config {
540
542
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
541
543
set ( & mut config. rust_rpath , rust. rpath ) ;
542
544
set ( & mut config. jemalloc , rust. jemalloc ) ;
545
+ set ( & mut config. test_compare_mode , rust. test_compare_mode ) ;
543
546
set ( & mut config. backtrace , rust. backtrace ) ;
544
547
set ( & mut config. channel , rust. channel . clone ( ) ) ;
545
548
set ( & mut config. rust_dist_src , rust. dist_src ) ;
Original file line number Diff line number Diff line change @@ -1022,7 +1022,13 @@ impl Step for Compiletest {
1022
1022
cmd. arg ( "--bless" ) ;
1023
1023
}
1024
1024
1025
- let compare_mode = builder. config . cmd . compare_mode ( ) . or ( self . compare_mode ) ;
1025
+ let compare_mode = builder. config . cmd . compare_mode ( ) . or_else ( || {
1026
+ if builder. config . test_compare_mode {
1027
+ self . compare_mode
1028
+ } else {
1029
+ None
1030
+ }
1031
+ } ) ;
1026
1032
1027
1033
if let Some ( ref nodejs) = builder. config . nodejs {
1028
1034
cmd. arg ( "--nodejs" ) . arg ( nodejs) ;
Original file line number Diff line number Diff line change @@ -16,5 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
16
16
COPY scripts/sccache.sh /scripts/
17
17
RUN sh /scripts/sccache.sh
18
18
19
- ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --disable-optimize-tests
19
+ ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
20
+ --disable-optimize-tests \
21
+ --set rust.test-compare-mode
20
22
ENV RUST_CHECK_TARGET check
You can’t perform that action at this time.
0 commit comments