Skip to content

Commit 955515f

Browse files
authored
update ziglua to work with zig 0.14.0-dev.3259+0779e847f (#134)
changes: `target.result.isDarwin()` is now `target.result.os.tag.isDarwin()` and `target.result.abi.floatAbi()` is now `target.result.abi.float()`
1 parent daa99a2 commit 955515f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/configure-pages@v2
2828
- uses: mlugg/setup-zig@v1
2929
with:
30-
version: 0.14.0-dev.2851+b074fb7dd
30+
version: 0.14.0-dev.3259+0779e847f
3131
- run: make docs
3232
- name: Upload artifact
3333
uses: actions/upload-pages-artifact@v1

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Zig
2121
uses: mlugg/setup-zig@v1
2222
with:
23-
version: 0.14.0-dev.2851+b074fb7dd
23+
version: 0.14.0-dev.3259+0779e847f
2424

2525
- name: Run tests
2626
run: make test

build/luajit.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
4545
if (target.result.ptrBitWidth() == 64) dynasm_run.addArgs(&.{ "-D", "P64" });
4646
dynasm_run.addArgs(&.{ "-D", "JIT", "-D", "FFI" });
4747

48-
if (target.result.abi.floatAbi() == .hard) {
48+
if (target.result.abi.float() == .hard) {
4949
dynasm_run.addArgs(&.{ "-D", "FPU", "-D", "HFABI" });
5050
}
5151

@@ -137,7 +137,7 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
137137

138138
if (target.result.os.tag == .windows) {
139139
buildvm_ljvm.addArg("peobj");
140-
} else if (target.result.isDarwin()) {
140+
} else if (target.result.os.tag.isDarwin()) {
141141
buildvm_ljvm.addArg("machasm");
142142
} else {
143143
buildvm_ljvm.addArg("elfasm");

0 commit comments

Comments
 (0)