aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-06-22 18:51:35 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-06-22 18:51:35 +0200
commitba768614aceb486bc387e60a6026f4f48188402e (patch)
tree7e876682c3cf9947efbb803feec8987b0c141cf1
parentb35e434caeb7448a93c14119e73d7e54d3864337 (diff)
downloadzig-ba768614aceb486bc387e60a6026f4f48188402e.tar.gz
zig-ba768614aceb486bc387e60a6026f4f48188402e.zip
link-tests: frameworks example can test for libobjc autolink in safety modes
-rw-r--r--test/link/macho/frameworks/build.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/link/macho/frameworks/build.zig b/test/link/macho/frameworks/build.zig
index a85f6a7350..2e1c8f3211 100644
--- 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);