authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-06-22 18:51:35+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-06-22 18:51:35+02:00
logba768614aceb486bc387e60a6026f4f48188402e
tree7e876682c3cf9947efbb803feec8987b0c141cf1
parentb35e434caeb7448a93c14119e73d7e54d3864337

link-tests: frameworks example can test for libobjc autolink in safety modes


1 files changed, 7 insertions(+), 2 deletions(-)

test/link/macho/frameworks/build.zig+7-2
......@@ -17,8 +17,13 @@ pub fn build(b: *Builder) void {
1717 check.check("cmd LOAD_DYLIB");
1818 check.checkNext("name {*}Cocoa");
1919
20 check.check("cmd LOAD_DYLIB");
21 check.checkNext("name {*}libobjc{*}.dylib");
20 switch (mode) {
21 .Debug, .ReleaseSafe => {
22 check.check("cmd LOAD_DYLIB");
23 check.checkNext("name {*}libobjc{*}.dylib");
24 },
25 else => {},
26 }
2227
2328 test_step.dependOn(&check.step);
2429