build.zig: fix bad type reference

It is apparently too hard to type a simple command into the terminal
before committing and pushing. Alas.
This commit is contained in:
torque 2023-06-01 23:58:00 -07:00
parent 49edb642e3
commit ad17458e45
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk

View File

@ -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(.{