Skip to content

Commit d59b4e0

Browse files
benlangmuirian-twilightcoder
authored andcommitted
[test] Fix stdlib/Reflection_objc.swift with newer deployment target
This test stops working with deployment targets that no longer link @rpath/libswiftCoreGraphics.dylib when running on OSes that still require the CoreGraphics overlay. Explicitly link it to workaround.
1 parent ab5d691 commit d59b4e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/stdlib/Reflection_objc.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %empty-directory(%t)
22
//
33
// RUN: %target-clang %S/Inputs/Mirror/Mirror.mm -c -o %t/Mirror.mm.o -g
4-
// RUN: %target-build-swift -parse-stdlib %s -module-name Reflection -I %S/Inputs/Mirror/ -Xlinker %t/Mirror.mm.o -o %t/a.out
4+
// Note: explicitly link the CoreGraphics overlay because does not get autolinked
5+
// and it is needed for conformances on macOS < 15.
6+
// RUN: %target-build-swift -parse-stdlib %s -module-name Reflection -I %S/Inputs/Mirror/ -Xlinker %t/Mirror.mm.o -o %t/a.out -lswiftCoreGraphics
57
// RUN: %target-codesign %t/a.out
68
// RUN: %{python} %S/../Inputs/timeout.py 360 %target-run %t/a.out %S/Inputs/shuffle.jpg | %FileCheck %s
79
// FIXME: timeout wrapper is necessary because the ASan test runs for hours

0 commit comments

Comments
 (0)