Skip to content

Fix LW.dll packaging when LLVM_DISTRIBUTION_COMPONENTS is used on Windows - #2162

Merged
Shankar Easwaran (quic-seaswara) merged 1 commit into
qualcomm:mainfrom
jonathonpenix:pr/lw_dll_fix
Oct 15, 2026
Merged

Shankar Easwaran (quic-seaswara) merged 1 commit into
qualcomm:mainfrom
jonathonpenix:pr/lw_dll_fix

Conversation

@jonathonpenix

@jonathonpenix Jonathon Penix (jonathonpenix) commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

I messed up when originally adding this in #740 --the COMPONENT ld.eld part attaches specifically to the ARCHIVE DESTINATION lib artifact kind rather than both ARCHIVE and RUNTIME kinds. So the RUNTIME kind isn't included in the final package/distribution when the ld.eld COMPONENT is used in LLVM_DISTRIBUTION_COMPONENTS.

To fix this, re-order the lines--when it appears first, it applies to all the artifact kinds if they don't have something else specified.

We could also duplicate the COMPONENT bit for each artifact kind, but that seems a bit verbose.

Assisted-by: claude

…dows

I messed up when originally adding this--the `COMPONENT ld.eld` part attaches
specifically to the `ARCHIVE DESTINATION lib` artifact kind rather than both
`ARCHIVE` and `RUNTIME` lines. So the `RUNTIME` line isn't included when the
`ld.eld` COMPONENT is included in the final package if
`LLVM_DISTRIBUTION_COMPONENTS` is used.

To fix this, re-order the lines--when it appears first, it apparently applies
to all the artifact kinds.

We could also duplicate the `COMPONENT` bit for each artifact kind, but that
seems a bit verbose.

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
@jonathonpenix Jonathon Penix (jonathonpenix) changed the title Fix LW.dll packaging when LLVM_DISTRIBUTION_COMPONENTS is used on Windows Fix LW.dll packaging when LLVM_DISTRIBUTION_COMPONENTS is used on Windows Oct 14, 2026
@jonathonpenix
Jonathon Penix (jonathonpenix) marked this pull request as ready for review October 15, 2026 17:16
@quic-seaswara
Shankar Easwaran (quic-seaswara) merged commit f008fac into qualcomm:main Oct 15, 2026
28 checks passed
@jonathonpenix

Copy link
Copy Markdown
Contributor Author

Our cpullvm mainline builders are seeing unrelated failures currently, but this seems to work as expected when built against ex: 22.x. See Windows toolchains generated in https://github.com/qualcomm/cpullvm-toolchain/actions/runs/38647560659?pr=703 (x86 timeout is unrelated)

@jonathonpenix
Jonathon Penix (jonathonpenix) deleted the pr/lw_dll_fix branch October 15, 2026 17:18
Shankar Easwaran (quic-seaswara) pushed a commit that referenced this pull request Oct 15, 2026
…on Windows (#2162) (#2167)

I messed up when originally adding this--the `COMPONENT ld.eld` part attaches
specifically to the `ARCHIVE DESTINATION lib` artifact kind rather than both
`ARCHIVE` and `RUNTIME` lines. So the `RUNTIME` line isn't included when the
`ld.eld` COMPONENT is included in the final package if
`LLVM_DISTRIBUTION_COMPONENTS` is used.

To fix this, re-order the lines--when it appears first, it apparently applies
to all the artifact kinds.

We could also duplicate the `COMPONENT` bit for each artifact kind, but that
seems a bit verbose.

(cherry picked from commit f008fac)

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
Shankar Easwaran (quic-seaswara) pushed a commit that referenced this pull request Oct 15, 2026
…on Windows (#2162) (#2168)

I messed up when originally adding this--the `COMPONENT ld.eld` part attaches
specifically to the `ARCHIVE DESTINATION lib` artifact kind rather than both
`ARCHIVE` and `RUNTIME` lines. So the `RUNTIME` line isn't included when the
`ld.eld` COMPONENT is included in the final package if
`LLVM_DISTRIBUTION_COMPONENTS` is used.

To fix this, re-order the lines--when it appears first, it apparently applies
to all the artifact kinds.

We could also duplicate the `COMPONENT` bit for each artifact kind, but that
seems a bit verbose.

(cherry picked from commit f008fac)

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
Shankar Easwaran (quic-seaswara) pushed a commit that referenced this pull request Oct 15, 2026
…COMPONENTS is used on Windows (#2162) (#2169)

I messed up when originally adding this--the `COMPONENT ld.eld` part attaches
specifically to the `ARCHIVE DESTINATION lib` artifact kind rather than both
`ARCHIVE` and `RUNTIME` lines. So the `RUNTIME` line isn't included when the
`ld.eld` COMPONENT is included in the final package if
`LLVM_DISTRIBUTION_COMPONENTS` is used.

To fix this, re-order the lines--when it appears first, it apparently applies
to all the artifact kinds.

We could also duplicate the `COMPONENT` bit for each artifact kind, but that
seems a bit verbose.

(cherry picked from commit f008fac)

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants