Skip to content

Commit

Permalink
update ziglua to work with zig 0.14.0-dev.3259+0779e847f (#134)
Browse files Browse the repository at this point in the history
changes:
`target.result.isDarwin()` is now `target.result.os.tag.isDarwin()`
and
`target.result.abi.floatAbi()` is now `target.result.abi.float()`
  • Loading branch information
nurpax authored Feb 19, 2025
1 parent daa99a2 commit 955515f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/configure-pages@v2
- uses: mlugg/setup-zig@v1
with:
version: 0.14.0-dev.2851+b074fb7dd
version: 0.14.0-dev.3259+0779e847f
- run: make docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: 0.14.0-dev.2851+b074fb7dd
version: 0.14.0-dev.3259+0779e847f

- name: Run tests
run: make test
4 changes: 2 additions & 2 deletions build/luajit.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
if (target.result.ptrBitWidth() == 64) dynasm_run.addArgs(&.{ "-D", "P64" });
dynasm_run.addArgs(&.{ "-D", "JIT", "-D", "FFI" });

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

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

if (target.result.os.tag == .windows) {
buildvm_ljvm.addArg("peobj");
} else if (target.result.isDarwin()) {
} else if (target.result.os.tag.isDarwin()) {
buildvm_ljvm.addArg("machasm");
} else {
buildvm_ljvm.addArg("elfasm");
Expand Down

0 comments on commit 955515f

Please sign in to comment.