From 7761accd987bf693ae1c70233c5fb968bb133b65 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sat, 6 Jan 2024 21:09:44 +0200 Subject: [PATCH] update build.zig in threads --- threads/build.zig | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/threads/build.zig b/threads/build.zig index f05a414..6f6dd22 100644 --- a/threads/build.zig +++ b/threads/build.zig @@ -4,19 +4,17 @@ pub fn build(b: *std.build.Builder) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - { - const exe = b.addExecutable(.{ - .name = "threads-simple", - .root_source_file = .{ .path = "main.c" }, - .optimize = optimize, - .target = target - }); - exe.linkLibC(); + const exe = b.addExecutable(.{ + .name = "threads-example", + .root_source_file = .{ .path = "main.c" }, + .optimize = optimize, + .target = target + }); + exe.linkLibC(); - const run_cmd = b.addRunArtifact(exe); - const run_step = b.step("run", "Run simple program"); - run_step.dependOn(&run_cmd.step); + const run_cmd = b.addRunArtifact(exe); + const run_step = b.step("run", "Run simple program"); + run_step.dependOn(&run_cmd.step); - b.installArtifact(exe); - } + b.installArtifact(exe); }