mirror of
https://github.com/ziglang/zig.git
synced 2026-01-27 09:45:27 +00:00
24 lines
565 B
Zig
24 lines
565 B
Zig
const std = @import("std");
|
|
|
|
pub const requires_symlinks = true;
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const test_step = b.step("test", "Test it");
|
|
b.default_step = test_step;
|
|
|
|
const target: std.zig.CrossTarget = .{ .os_tag = .macos };
|
|
|
|
const lib = b.addSharedLibrary(.{
|
|
.name = "a",
|
|
.root_source_file = .{ .path = "main.zig" },
|
|
.optimize = .Debug,
|
|
.target = target,
|
|
});
|
|
|
|
const check = lib.checkObject();
|
|
check.checkInSymtab();
|
|
check.checkNotPresent("external");
|
|
|
|
test_step.dependOn(&check.step);
|
|
}
|