Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9a77ec9

Browse files
committed
Rename -Zno_parallel_llvm -> -Zno_parallel_backend
1 parent ee9c7c9 commit 9a77ec9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
13991399
.binary_search_by_key(&cost, |&(_, cost)| cost)
14001400
.unwrap_or_else(|e| e);
14011401
work_items.insert(insertion_index, (work, cost));
1402-
if !cgcx.opts.unstable_opts.no_parallel_llvm {
1402+
if !cgcx.opts.unstable_opts.no_parallel_backend {
14031403
helper.request_token();
14041404
}
14051405
}
@@ -1522,7 +1522,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
15221522
};
15231523
work_items.insert(insertion_index, (llvm_work_item, cost));
15241524

1525-
if !cgcx.opts.unstable_opts.no_parallel_llvm {
1525+
if !cgcx.opts.unstable_opts.no_parallel_backend {
15261526
helper.request_token();
15271527
}
15281528
assert_eq!(main_thread_state, MainThreadState::Codegenning);

compiler/rustc_interface/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fn test_unstable_options_tracking_hash() {
685685
untracked!(nll_facts, true);
686686
untracked!(no_analysis, true);
687687
untracked!(no_leak_check, true);
688-
untracked!(no_parallel_llvm, true);
688+
untracked!(no_parallel_backend, true);
689689
untracked!(parse_only, true);
690690
// `pre_link_arg` is omitted because it just forwards to `pre_link_args`.
691691
untracked!(pre_link_args, vec![String::from("abc"), String::from("def")]);

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ options! {
17531753
"disable the 'leak check' for subtyping; unsound, but useful for tests"),
17541754
no_link: bool = (false, parse_no_flag, [TRACKED],
17551755
"compile without linking"),
1756-
no_parallel_llvm: bool = (false, parse_no_flag, [UNTRACKED],
1756+
no_parallel_backend: bool = (false, parse_no_flag, [UNTRACKED],
17571757
"run LLVM in non-parallel mode (while keeping codegen-units and ThinLTO)"),
17581758
no_profiler_runtime: bool = (false, parse_no_flag, [TRACKED],
17591759
"prevent automatic injection of the profiler_builtins crate"),

0 commit comments

Comments
 (0)