Skip to content

Allow two object files for a single CGU in CompiledModule#157051

Open
bjorn3 wants to merge 1 commit into
rust-lang:mainfrom
bjorn3:lto_refactors20
Open

Allow two object files for a single CGU in CompiledModule#157051
bjorn3 wants to merge 1 commit into
rust-lang:mainfrom
bjorn3:lto_refactors20

Conversation

@bjorn3
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 commented May 28, 2026

cg_clif needs this as it passes inline assembly to an external assembler, producing a separate object file. Currently it emits multiple CompiledModules, but this is not compatible with using the codegen coordinator of cg_ssa.

cg_clif needs this as it passes inline assembly to an external assembler,
producing a separate object file. Currently it emits multiple
CompiledModules, but this is not compatible with using the codegen
coordinator of cg_ssa.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 28, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 28, 2026

r? @folkertdev

rustbot has assigned @folkertdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 18 candidates

}
if let Some(obj) = &m.global_asm_object {
check_file_is_writeable(obj, sess);
}
Copy link
Copy Markdown
Member Author

@bjorn3 bjorn3 May 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a .objects() helper that returns impl Iterator<Item = &Path> would be useful?

View changes since the review

@folkertdev
Copy link
Copy Markdown
Contributor

Not really my area of expertise, maybe

r? saethlin

@rustbot rustbot assigned saethlin and unassigned folkertdev May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants