mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
link-tests: frameworks example can test for libobjc autolink in safety modes
This commit is contained in:
parent
b35e434cae
commit
ba768614ac
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user