Skip to content

Commit cc53fd9

Browse files
committed
Fix archive_attributes test to work on macOS 10.9
That OS doesn't have objc_readClassPair(). This test uses -target to explicitly select a newer deployment target and then runs the binary on an old OS to test the behavior. However this means arclite won't get linked in unless we also pass in -link-objc-runtime. Fixes <rdar://problem/50610877>.
1 parent 14a20ee commit cc53fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Interpreter/SDK/archive_attributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %target-build-swift %s -module-name=test -o %t/decode
77
// RUN: %target-run %t/decode %t/test.arc --stdlib-unittest-in-process
88

9-
// RUN: %target-build-swift %s -module-name=test -o %t/decode -target x86_64-apple-macosx10.14.4
9+
// RUN: %target-build-swift %s -module-name=test -o %t/decode -target x86_64-apple-macosx10.14.4 -link-objc-runtime
1010
// RUN: %target-run %t/decode %t/test.arc NEW --stdlib-unittest-in-process
1111

1212
// REQUIRES: executable_test

0 commit comments

Comments
 (0)