Skip to content

v1.5.0 — zig-build-argv takes its steps optionally

Choose a tag to compare

@jjba23 jjba23 released this 25 Nov 19:15
· 28 commits to trunk since this release
2a5e433

Summary

zig-build-argv takes its steps as an optional first argument, so the common
call names the build options and nothing else. The argv it builds is unchanged,
and so is the rest of the library, the command line and the file formats.

Added

  • zig-build-argv takes its steps as an optional first argument. Omitting
    them, or passing '(), builds Zig's default install step:

    (zig-build-argv #:optimize "ReleaseSafe")
    ;; => ("zig" "build" "-Doptimize=ReleaseSafe")

    which used to need (zig-build-argv '() #:optimize "ReleaseSafe").

  • The docstring says which shape a step has -- a step name is a string, and
    several steps are a list of them -- and docs/zig.org shows the short form
    beside the long one.

  • test/veritas/unit/zig.scm covers the call that names no steps at all,
    beside the one that passes an empty list.

Changed

  • A call that names its steps builds the same argv as before, whether it passes
    one step name as a string or a list of them, so a Maak file written against
    v1.4.0 needs no edit.

Verification

  • The full Veritas suite is green on the release commit (./scripts/maak-test,
    exit 0): 37 spec files, no failures, no aborted cases -- including the spec
    that compares every copy of the version and the one that resolves every
    file: link in the guide.
  • maak sync-version rewrote the six copies it owns (the RPM spec, the Arch
    recipe, the Void template, the Homebrew formula, the manual page and the
    installation page) and committed them as chore: Release v1.5.0, which is
    the commit this tag names. The Debian changelog entry is written by hand,
    because that task does not own it.
  • The Arch recipe's, the Homebrew formula's and the Void template's checksums
    are refreshed from the published tag after the push.

Notes

  • Nothing else changed: no new option, environment variable, exit code or file
    format.

🤖 Generated with ECA