Skip to content

Commit

Permalink
build: migrate to zig 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DISTREAT committed Apr 21, 2024
1 parent 3ead5f2 commit 75b0aa5
Show file tree
Hide file tree
Showing 846 changed files with 1,071 additions and 618,774 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A library for parsing command-line options, arguments, and sub-commands.

_Build using zig version: `0.11.0`_
_Build using zig version: `0.12.0`_

## How does it compare to the POSIX and GNU conventions?

Expand Down Expand Up @@ -68,4 +68,3 @@ Anyway, don't underestimate the project of writing a CLI argument parser that su
Every single stage of this project tested me and my idealistic bed-of-rose-loving ass. Considering all I've just said, I'd recommend writing an argument parser once in your life - it just makes you feel cured of all previous projects (or sad about your life choices) - because I hated it, especially in the final half-assed stages.

Now that I succeeded (more or less), you may consider this my magnum opus of yak shaving.

7 changes: 4 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const std = @import("std");

pub fn build(b: *std.build.Builder) void {
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const mode = b.standardOptimizeOption(.{});

_ = b.addModule("zig-argtic", .{
.source_file = .{ .path = "src/zig-argtic.zig" },
.dependencies = &[_]std.Build.ModuleDependency{},
.root_source_file = .{ .path = "src/zig-argtic.zig" },
.optimize = mode,
.target = target,
});

const lib = b.addStaticLibrary(.{
Expand Down
Loading

0 comments on commit 75b0aa5

Please sign in to comment.