link-tests: frameworks example can test for libobjc autolink in safety modes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user