Skip to content

Commit 4282ea8

Browse files
committed
LinkMode is a type; for the value, consistently use "linkage"
1 parent b8f2ebd commit 4282ea8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/compile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
zig build -Dtarget=wasm32-wasi
4242
zig build -Dtarget=wasm32-freestanding
4343
44-
zig build -Dlink-mode=dynamic
45-
zig build -Dlink-mode=dynamic -Drelease
46-
zig build -Dlink-mode=dynamic -Drelease -Dfavor-performance
47-
zig build -Dlink-mode=dynamic -Drelease -Dwith-benchmark
48-
zig build -Dlink-mode=dynamic -Drelease -Dwith-benchmark -Dfavor-performance
44+
zig build -Dlinkage=dynamic
45+
zig build -Dlinkage=dynamic -Drelease
46+
zig build -Dlinkage=dynamic -Drelease -Dfavor-performance
47+
zig build -Dlinkage=dynamic -Drelease -Dwith-benchmark
48+
zig build -Dlinkage=dynamic -Drelease -Dwith-benchmark -Dfavor-performance

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Note that the compiler makes a difference. Zig (or a recent `clang` with target-
2626
zig build -Drelease
2727
```
2828

29-
To build the library as a shared object using the `-Dlink-mode` option:
29+
To build the library as a shared object using the `-Dlinkage` option:
3030
```sh
31-
zig build -Dlink-mode=dynamic -Drelease
31+
zig build -Dlinkage=dynamic -Drelease
3232
```
3333

3434
The library and headers are installed in the `zig-out` folder.

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55
const with_benchmark: bool = b.option(bool, "with-benchmark", "Compile benchmark") orelse false;
66
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseFast });
77
const version = std.SemanticVersion.parse("0.4.5") catch unreachable;
8-
const linkage = b.option(std.builtin.LinkMode, "link-mode", "Link mode") orelse .static;
8+
const linkage = b.option(std.builtin.LinkMode, "linkage", "Link mode") orelse .static;
99

1010
const lib = b.addLibrary(.{
1111
.name = "aegis",

0 commit comments

Comments
 (0)