zig/test/link/macho/bugs/16308/build.zig
2023-07-26 13:38:24 +02:00

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);
}