You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// build.zigconststd=@import("std");
pubfnbuild(b: *std.build.Builder) void {
// Standard target options allows the person running `zig build` to choose// what target to build for. Here we do not override the defaults, which// means any target is allowed, and the default is native. Other options// for restricting supported target set are available.consttarget=b.standardTargetOptions(.{});
// Standard release options allow the person running `zig build` to select// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.constmode=b.standardReleaseOptions();
constexe=b.addExecutable("app", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
construn_cmd=exe.run();
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
construn_step=b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
constexe_tests=b.addTest("src/main.zig");
exe_tests.setTarget(target);
exe_tests.setBuildMode(mode);
consttest_step=b.step("test", "Run unit tests");
test_step.dependOn(&exe_tests.step);
}
Zig Version
0.10.0-dev.3315+1a16b7214
Steps to Reproduce
Expected Behavior
should be able to read from stdin
Actual Behavior
this error only happens when build.zig is being compiled when you execute
zig build run
so if you run
zig build run
again this error does not occurThe text was updated successfully, but these errors were encountered: