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

This commit is contained in:
Jakub Konka 2022-06-22 18:51:35 +02:00
parent b35e434cae
commit ba768614ac

View File

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