about summary refs log tree commit diff
path: root/compiler/rustc_session
diff options
context:
space:
mode:
authorywxt <ywxtcwh@gmail.com>2025-07-30 17:33:17 +0800
committerywxt <ywxtcwh@gmail.com>2025-08-13 08:59:32 +0800
commit075ce31bd39c68b911edda233f0af3f40113212b (patch)
tree5c742ea6f63f8fab9754969b9c5ff47b8d532d07 /compiler/rustc_session
parent8e62bfd311791bfd9dca886abdfbab07ec54d8b4 (diff)
downloadrust-075ce31bd39c68b911edda233f0af3f40113212b.tar.gz
rust-075ce31bd39c68b911edda233f0af3f40113212b.zip
Fix parallel rustc not being reproducible due to unstable sorting of items.
Diffstat (limited to 'compiler/rustc_session')
-rw-r--r--compiler/rustc_session/src/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index 7c18fd89098..0e112edc733 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -2165,6 +2165,8 @@ options! {
         "hash algorithm of source files used to check freshness in cargo (`blake3` or `sha256`)"),
     codegen_backend: Option<String> = (None, parse_opt_string, [TRACKED],
         "the backend to use"),
+    codegen_source_order: bool = (false, parse_bool, [UNTRACKED],
+        "emit mono items in the order of spans in source files (default: no)"),
     contract_checks: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "emit runtime checks for contract pre- and post-conditions (default: no)"),
     coverage_options: CoverageOptions = (CoverageOptions::default(), parse_coverage_options, [TRACKED],