Skip to content

Commit e11a34d

Browse files
committed
update to Zig 0.14.0
1 parent e728892 commit e11a34d

27 files changed

Lines changed: 124 additions & 111 deletions

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: mlugg/setup-zig@v1
2828
with:
2929
mirror: "http://mirrors.nektro.net/s3cgi"
30-
version: "0.13.0"
30+
version: "0.14.0"
3131

3232
- run: zig version
3333
- run: zig env

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: mlugg/setup-zig@v1
2121
with:
2222
mirror: "http://mirrors.nektro.net/s3cgi"
23-
version: "0.13.0"
23+
version: "0.14.0"
2424

2525
- run: zig version
2626
- run: zig env

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,51 @@
11
# zigmod
2+
23
![loc](https://sloc.xyz/github/nektro/zigmod)
34
[![license](https://img.shields.io/github/license/nektro/zigmod.svg)](https://github.com/nektro/zigmod/blob/master/LICENSE)
45
[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)
56
[![release](https://img.shields.io/github/v/release/nektro/zigmod)](https://github.com/nektro/zigmod/releases/latest)
67
[![downloads](https://img.shields.io/github/downloads/nektro/zigmod/total.svg)](https://github.com/nektro/zigmod/releases)
8+
[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
9+
[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
710

811
A package manager for the Zig programming language.
912

1013
## Zig
14+
1115
- https://ziglang.org/
1216
- https://github.com/ziglang/zig
1317
- https://github.com/ziglang/zig/wiki/Community
1418

1519
## Download
20+
1621
- https://github.com/nektro/zigmod/releases
1722

1823
## Built With
19-
- Zig `0.13.0`
24+
25+
- Zig `0.14.0`
2026
- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)
2127

2228
### Build from Source
29+
2330
```
2431
$ git clone https://github.com/nektro/zigmod
2532
$ cd zigmod
2633
$ zig build -j1
2734
```
2835

2936
## Usage
37+
3038
Check out our [docs](docs/) or the website: https://nektro.github.io/zigmod/.
3139

3240
There is now also a tutorial-style getting started guide that goes over various use cases that Zigmod provides and caters to. It is [available here](docs/tutorial.md).
3341

3442
A package index for Zigmod packages is also available at https://aquila.red/.
3543

3644
## Contact
45+
3746
- hello@nektro.net
3847
- https://twitter.com/nektro
3948

4049
## License
50+
4151
MIT

build.zig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const builtin = @import("builtin");
44
const deps = @import("./deps.zig");
55

66
pub fn build(b: *std.Build) void {
7+
b.reference_trace = 256;
8+
79
const target = b.standardTargetOptions(.{});
810
const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
911
const use_full_name = b.option(bool, "use-full-name", "") orelse false;
@@ -18,15 +20,16 @@ pub fn build(b: *std.Build) void {
1820
const tag = b.option(string, "tag", "") orelse "dev";
1921
const strip = b.option(bool, "strip", "Build without debug info.") orelse false;
2022
const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
23+
_ = &disable_llvm; // macos can't mix the flags rn because it needs llvm but also can't use lld
2124

2225
const exe_options = b.addOptions();
2326
exe.root_module.addImport("build_options", exe_options.createModule());
2427
exe_options.addOption(string, "version", tag);
2528

2629
deps.addAllTo(exe);
2730
exe.root_module.strip = strip;
28-
exe.use_llvm = !disable_llvm;
29-
exe.use_lld = !disable_llvm;
31+
// exe.use_llvm = !disable_llvm;
32+
// exe.use_lld = !disable_llvm;
3033
b.installArtifact(exe);
3134

3235
const run_cmd = b.addRunArtifact(exe);

build_all_zig.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
set -e
44

55
zig build
6-
zigmod license > licenses.txt
7-
zigmod sum
86

97
targets="
108
x86_64-linux-musl
@@ -15,8 +13,8 @@ aarch64-macos-none
1513
aarch64-windows-gnu
1614
riscv64-linux-musl
1715
powerpc64le-linux-musl
18-
mips64-linux-musl
1916
"
17+
# mips64-linux-musl # https://github.com/ziglang/zig/issues/23965
2018

2119
for item in $targets
2220
do

deps.zig

Lines changed: 61 additions & 59 deletions
Large diffs are not rendered by default.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed.
1010

1111
As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master.
1212

13-
The earliest Zig release this Zigmod was verified to work with is `0.13.0`.
13+
The earliest Zig release this Zigmod was verified to work with is `0.14.0`.
1414

1515
## Download
1616
You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.

src/cmd/aq.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub const commands = struct {
1919

2020
pub const server_root = "https://aquila.red";
2121

22-
pub fn execute(self_name: []const u8, args: [][]u8) !void {
22+
pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
2323
if (args.len == 0) {
2424
std.debug.print("{s}\n", .{
2525
\\This is a subcommand for use with https://github.com/nektro/aquila instances but has no default behavior on its own aside from showing you this nice help text.

src/cmd/aquila/add.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const aq = @import("./../aq.zig");
88
//
99
//
1010

11-
pub fn execute(self_name: []const u8, args: [][]u8) !void {
11+
pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212
_ = self_name;
1313

1414
const pkg_id = args[0];

src/cmd/aquila/install.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");
88
const u = @import("./../../util/funcs.zig");
99
const common = @import("./../../common.zig");
1010

11-
pub fn execute(self_name: []const u8, args: [][]u8) !void {
11+
pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212
_ = self_name;
1313

1414
const home = try knownfolders.getPath(gpa, .home);

0 commit comments

Comments
 (0)