Skip to content

Commit af0fb44

Browse files
Enabled parallel queries for perf.rlo benchmarking.
1 parent d48ab69 commit af0fb44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ci/docker/dist-x86_64-linux/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ ENV RUST_CONFIGURE_ARGS \
102102
--set target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
103103
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
104104
--set llvm.thin-lto=true \
105+
--enable-experimental-parallel-queries \
105106
--set rust.jemalloc
106107
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
107108
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang

src/librustc/session/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
11901190
"prints the llvm optimization passes being run"),
11911191
ast_json: bool = (false, parse_bool, [UNTRACKED],
11921192
"print the AST as JSON and halt"),
1193-
query_threads: Option<usize> = (None, parse_opt_uint, [UNTRACKED],
1193+
query_threads: Option<usize> = (Some(4), parse_opt_uint, [UNTRACKED],
11941194
"execute queries on a thread pool with N threads"),
11951195
ast_json_noexpand: bool = (false, parse_bool, [UNTRACKED],
11961196
"print the pre-expansion AST as JSON and halt"),

0 commit comments

Comments
 (0)