mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
20 lines
522 B
Zig
20 lines
522 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const optimize: std.builtin.OptimizeMode = .Debug;
|
|
|
|
const obj = b.addObject(.{
|
|
.name = "exports",
|
|
.root_source_file = b.path("exports.zig"),
|
|
.target = b.host,
|
|
.optimize = optimize,
|
|
});
|
|
const main = b.addTest(.{
|
|
.root_source_file = b.path("main.zig"),
|
|
.optimize = optimize,
|
|
});
|
|
main.addObject(obj);
|
|
|
|
const test_step = b.step("test", "Test it");
|
|
test_step.dependOn(&main.step);
|
|
}
|