From ad17458e45a37a7b4e9f7e2ed33fc278b73a5138 Mon Sep 17 00:00:00 2001 From: torque Date: Thu, 1 Jun 2023 23:58:00 -0700 Subject: [PATCH] build.zig: fix bad type reference It is apparently too hard to type a simple command into the terminal before committing and pushing. Alas. --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index f7a4796..929825c 100644 --- a/build.zig +++ b/build.zig @@ -1,7 +1,7 @@ const std = @import("std"); pub fn build(b: *std.Build) void { - const target: std.Build.CrossTarget = b.standardTargetOptions(.{}); + const target: std.zig.CrossTarget = b.standardTargetOptions(.{}); const optimize: std.builtin.Mode = b.standardOptimizeOption(.{}); const noclip = b.addModule("noclip", .{ @@ -21,7 +21,7 @@ pub fn build(b: *std.Build) void { test_step.dependOn(&tests.step); } -fn demo(b: *std.Build, noclip: *std.Build.Module, target: std.Build.CrossTarget, optimize: std.builtin.Mode) void { +fn demo(b: *std.Build, noclip: *std.Build.Module, target: std.zig.CrossTarget, optimize: std.builtin.Mode) void { const demo_step = b.step("demo", "Build and install CLI demo program"); const exe = b.addExecutable(.{