Skip to content

Commit 9800eb2

Browse files
committed
Add -Zembed-metadata CLI option
1 parent 0666b74 commit 9800eb2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎compiler/rustc_interface/src/tests.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ fn test_unstable_options_tracking_hash() {
787787
tracked!(direct_access_external_data,Some(true));
788788
tracked!(dual_proc_macros,true);
789789
tracked!(dwarf_version,Some(5));
790+
tracked!(embed_metadata,false);
790791
tracked!(embed_source,true);
791792
tracked!(emit_thin_lto,false);
792793
tracked!(emscripten_wasm_eh,true);

‎compiler/rustc_session/src/options.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,8 @@ options! {
21752175
them only if an error has not been emitted"),
21762176
ehcont_guard:bool = (false, parse_bool,[TRACKED],
21772177
"generate Windows EHCont Guard tables"),
2178+
embed_metadata:bool = (true, parse_bool,[TRACKED],
2179+
"embed metadata in rlibs and dylibs (default: yes)"),
21782180
embed_source:bool = (false, parse_bool,[TRACKED],
21792181
"embed source text in DWARF debug sections (default: no)"),
21802182
emit_stack_sizes:bool = (false, parse_bool,[UNTRACKED],

0 commit comments

Comments
 (0)