mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
23 lines
557 B
Zig
23 lines
557 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const obj = b.addObject(.{
|
|
.name = "base64",
|
|
.root_module = b.createModule(.{
|
|
.root_source_file = b.path("base64.zig"),
|
|
}),
|
|
});
|
|
|
|
const exe = b.addExecutable(.{
|
|
.name = "test",
|
|
.root_module = b.createModule(.{
|
|
.link_libc = true,
|
|
}),
|
|
});
|
|
exe.root_module.addCSourceFile(.{ .file = b.path("test.c"), .flags = &.{"-std=c99"} });
|
|
exe.root_module.addObject(obj);
|
|
b.installArtifact(exe);
|
|
}
|
|
|
|
// syntax
|