From 44ea38f25453fbf51de72505d7b3ddb0f3eec13c Mon Sep 17 00:00:00 2001 From: Jimmi HC Date: Wed, 12 Jun 2019 15:30:30 +0200 Subject: updated to newest version of zig --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 3ceba14..cbf8214 100644 --- a/build.zig +++ b/build.zig @@ -8,21 +8,21 @@ pub fn build(b: *Builder) void { const mode = b.standardReleaseOptions(); const example_step = b.step("examples", "Build examples"); - inline for ([][]const u8{ + inline for ([_][]const u8{ "comptime-clap", "streaming-clap", }) |example_name| { const example = b.addExecutable(example_name, "example/" ++ example_name ++ ".zig"); - example.addPackagePath("clap", "index.zig"); + example.addPackagePath("clap", "clap.zig"); example.setBuildMode(mode); example_step.dependOn(&example.step); } const test_all_step = b.step("test", "Run all tests in all modes."); - inline for ([]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| { + inline for ([_]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| { const mode_str = comptime modeToString(test_mode); - const tests = b.addTest("index.zig"); + const tests = b.addTest("clap.zig"); tests.setBuildMode(test_mode); tests.setNamePrefix(mode_str ++ " "); -- cgit v1.2.3