tcp_demo/build.zig
2024-06-17 14:06:23 +08:00

19 lines
445 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "crun",
.target = target,
.optimize = optimize,
});
exe.addCSourceFile(.{ .file = b.path("main.c"), .flags = &.{} });
exe.linkSystemLibrary("zmq");
exe.linkLibC();
b.installArtifact(exe);
}