commit ba768614aceb486bc387e60a6026f4f48188402e (tree) parent b35e434caeb7448a93c14119e73d7e54d3864337 Author: Jakub Konka <kubkon@jakubkonka.com> Date: Wed, 22 Jun 2022 18:51:35 +0200 link-tests: frameworks example can test for libobjc autolink in safety modes Diffstat:
| M | test/link/macho/frameworks/build.zig | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/test/link/macho/frameworks/build.zig b/test/link/macho/frameworks/build.zig @@ -17,8 +17,13 @@ pub fn build(b: *Builder) void { check.check("cmd LOAD_DYLIB"); check.checkNext("name {*}Cocoa"); - check.check("cmd LOAD_DYLIB"); - check.checkNext("name {*}libobjc{*}.dylib"); + switch (mode) { + .Debug, .ReleaseSafe => { + check.check("cmd LOAD_DYLIB"); + check.checkNext("name {*}libobjc{*}.dylib"); + }, + else => {}, + } test_step.dependOn(&check.step);