Skip to content

Commit 956c406

Browse files
committed
Add -Zsplit-metadata CLI option
1 parent db94aa1 commit 956c406

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/rustc_interface/src/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ fn test_unstable_options_tracking_hash() {
859859
tracked!(simulate_remapped_rust_src_base, Some(PathBuf::from("/rustc/abc")));
860860
tracked!(small_data_threshold, Some(16));
861861
tracked!(split_lto_unit, Some(true));
862+
tracked!(split_metadata, true);
862863
tracked!(src_hash_algorithm, Some(SourceFileHashAlgorithm::Sha1));
863864
tracked!(stack_protector, StackProtector::All);
864865
tracked!(teach, true);

compiler/rustc_session/src/options.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2482,6 +2482,8 @@ written to standard error output)"),
24822482
by the linker"),
24832483
split_lto_unit: Option<bool> = (None, parse_opt_bool, [TRACKED],
24842484
"enable LTO unit splitting (default: no)"),
2485+
split_metadata: bool = (false, parse_bool, [TRACKED],
2486+
"split metadata out of libraries into .rmeta files"),
24852487
src_hash_algorithm: Option<SourceFileHashAlgorithm> = (None, parse_src_file_hash, [TRACKED],
24862488
"hash algorithm of source files in debug info (`md5`, `sha1`, or `sha256`)"),
24872489
#[rustc_lint_opt_deny_field_access("use `Session::stack_protector` instead of this field")]

0 commit comments

Comments
 (0)