Open Nyxie98 opened 8 months ago
This might just be my lack of knowledge on Zig, but I am getting the following error when I run zig build on a simple project:
zig build
error: struct 'target.Target' has no member named 'Query' pub fn addTo(b: *std.Build, exe: *std.Build.Step.Compile, target: std.Target.Query, optimize: std.builtin.Mode, raylibOptions: raylib_build.Options) void {
I am not sure where to begin with this, and online searches yield nothing even remotely relevant
build.zig
const std = @import("std"); const raylib = @import("./src/raylib/build.zig"); pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const mode = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ .name = "TestGame", .root_source_file = .{ .path = "src/main.zig" }, .optimize = mode, .target = target, }); raylib.addTo(b, exe, target, mode, .{}); b.installArtifact(exe); }
This might just be my lack of knowledge on Zig, but I am getting the following error when I run
zig build
on a simple project:I am not sure where to begin with this, and online searches yield nothing even remotely relevant
build.zig