Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8ad7c34

Browse files
committedDec 10, 2017
Auto merge of #46564 - Zoxc:rayon-queries, r=<try>
WIP: Parallelize passes using rayon This builds on #46193 and #45912 and actually makes code run in parallel. This is not quite ready yet since `rustc` is not yet completely thread safe. It also uses a rough fork of rayon which uses fibers/stackful coroutines.
2 parents 2537a49 + 26a0515 commit 8ad7c34

File tree

160 files changed

+3858
-2408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+3858
-2408
lines changed
 

‎src/Cargo.lock

Lines changed: 309 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/bootstrap/bin/rustc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ fn main() {
262262
}
263263
}
264264

265+
if env::var_os("RUSTC_PARALLEL_QUERIES").is_some() {
266+
cmd.arg("--cfg").arg("parallel_queries");
267+
}
268+
265269
let color = match env::var("RUSTC_COLOR") {
266270
Ok(s) => usize::from_str(&s).expect("RUSTC_COLOR should be an integer"),
267271
Err(_) => 0,

0 commit comments

Comments
 (0)
Please sign in to comment.