--emit=[asm|llvm-bc|llvm-ir|obj]
not emitting allocator or metadata
#67292
Labels
A-codegen
Area: Code generation
A-metadata
Area: Crate metadata
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
At present,
rustc --emit=[asm|llvm-bc|llvm-ir|obj]
only generates artifacts of the regular module but not allocators or metadata.While working on #64191 , I found such behavior was very confusing as I expected it to output all artifacts I need to generate the final binary. Therefore, I am proposing to make
rustc --emit=[asm|llvm-bc|llvm-ir|obj]
emits allocators and metadata, in addition to the regular module. For example:rustc --emit=llvm-bc foo.rs
would outputsfoo.bc
andfoo.allocator.bc
[crate-type bin doesn't need metadata]rustc --emit=llvm-ir foo.rs --crate-type=dylib
would outputsfoo.ll
,foo.allocator.ll
, andfoo.metadata.ll
The text was updated successfully, but these errors were encountered: