Skip to content

Support manifest-owned freestanding and PIC settings for object libraries #180

Closed

Description

@LunaStev

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

Whale builds Wave modules as freestanding, position-independent objects. Vex exposes object/shared libraries, but library declarations do not accept platform mode and PIC is currently selected automatically for shared output only.

Acceptance:

  • Add typed manifest-owned configuration for object-library freestanding/hosted mode and relocation model, including PIC, without arbitrary wavec flag passthrough.
  • Define profile/platform override precedence and keep executable entry/startup/linker-script settings distinct from object code generation.
  • Validate combinations against the selected compiler/target contract before compilation. Do not assume a native ELF capability applies to COFF, Mach-O or Wasm.
  • Carry effective settings through check, dry-run plans, metadata/results, compiler invocation and freshness keys. Changes must invalidate reuse.
  • Preserve existing manifest defaults and output kinds, with an explicit schema change if required.
  • Test plan rejection and actual O0/O2 Wave objects linked into C/Rust callers, including shared-link use proving PIC and a freestanding fixture proving the intended runtime dependencies.

Follow-up to #54/#48/#159; their existing binary modes, profiles and C ABI interoperability are not reimplemented here. Static archive construction is a separate issue.

Starting points: manifest model, native code generation settings, build arguments.

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