Skip to content

Add deterministic static-library output for Wave packages #185

Closed

Description

@LunaStev

Planned for v0.0.3-beta; reviewed against master cd13f1d9c244cfdb207f38412db6c513bd5fd543.

Current library output supports object/shared artifacts; static archives are explicitly delegated to an external build system. Add a manifest-owned static output kind so native consumers can request a complete linkable archive directly.

Acceptance:

  • Extend the library output schema with a documented static kind (proposed targets.lib.output = "static"), preserving object/shared defaults and rejecting invalid target/output combinations.
  • Produce package-named .a archives for the appropriate ELF/Mach-O targets and native COFF .lib archives for MSVC. Do not infer archive format solely from the archiver's build host.
  • Select/query a suitable archiver explicitly, create a deterministic archive with a valid symbol index, and handle argument quoting/paths without shell interpolation. Report unsupported tools/formats before publication.
  • Define exactly which Wave objects/imported code the archive contains, avoid duplicate definitions, and report separately required native/system libraries rather than silently bundling them.
  • Include code-generation settings, archiver identity, member inputs and final SHA-256 in plans, freshness and artifact results. Honor the selected external build root and last-good-generation publication.
  • Test O0/O2 real Wave archives linked/run by C/C++/Rust callers, symbol lookup, archive order/index, cross-format inspection, deterministic bytes from separate directories, and compiler/archiver/publication failures. Update metadata/help/schemas and the Meson example.

Follow-up to #46/#47/#159, not a duplicate of existing prebuilt archive inputs or #168's filename-extension fix. This output does not require compiling foreign source trees.

Starting points: output-kind model, artifact naming/planning, native interoperability contract.

Integration dependencies: #180, #179, #183, #184.

Activity

  1. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions