Skip to content

Publish MSVC import libraries using final output names when staging linked artifacts #536

Closed

Description

@LunaStev

link_objects passes PendingOutput::path() to the linker. That path is a .wave-output-<pid>-<counter>.tmp file; only the main output is renamed at commit. The MSVC argument builder emits /OUT for this temporary path and /DLL when requested, without an explicit /IMPLIB destination.

For an image with exports, LINK derives the default import-library basename from the main output. Thus a successful DLL link can leave its import library under the temporary basename rather than next to the requested DLL name. Other linker-created companion artifacts must be considered in the same publication path.

Source evidence at the head of #520:

Acceptance:

  • Plan final and staged names for the import library and any requested debug/companion artifacts, honoring explicit user paths.
  • Ensure an exported DLL can be consumed through the advertised final import-library path.
  • Cover successful publication, link failure, and replacement without leaving temporary-basename sidecars.
  • Preserve existing Windows GNU linking and add native MSVC checks for amd64/ARM64.

API/reference context: LINK /IMPLIB default naming.

Related: #498 and #292.

Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. This follows up the implementation introduced in draft PR #520.

Activity

  1. added
    bug
    build
    help wanted
    on Sep 8, 2026
  2. added a commit that references this issue on Sep 11, 2026
    ecb1637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuildhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions