Skip to content

Commit ef5a327

Browse files
committed
build: fix for latest zig
1 parent 47a9c0d commit ef5a327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub fn build(b: *std.Build) !void {
117117
try flags.append("-std=c99");
118118

119119
inline for (std.meta.fields(EnableOptions)) |field| {
120-
const opt = b.option(bool, field.name, "Enable " ++ field.name) orelse @as(*const bool, @ptrCast(field.default_value.?)).*;
120+
const opt = b.option(bool, field.name, "Enable " ++ field.name) orelse field.defaultValue().?;
121121

122122
if (opt) {
123123
var buf: [field.name.len]u8 = undefined;

0 commit comments

Comments
 (0)