Skip to content

Commit dfd40be

Browse files
committed
Relax framework linking test
This test was introduced in #118644, but was over-specified in that it assumed the path of the linker was always `cc`.
1 parent 99c42d2 commit dfd40be

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
error: linking with `cc` failed: exit status: 1
2-
|
31
ld: Undefined symbols:
42
_CFRunLoopGetTypeID, referenced from:
5-
clang: error: linker command failed with exit code 1 (use -v to see invocation)
6-
7-
8-
error: aborting due to 1 previous error

tests/ui/linkage-attr/framework.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
//@ [weak]run-pass
77
//@ [both]run-pass
88

9-
// The linker's exact error output changes between Xcode versions.
9+
// The linker's exact error output changes between Xcode versions, and depends
10+
// on linker invocation details.
1011
//@ compare-output-lines-by-subset
1112
//@ normalize-stderr-test: "Undefined symbols for architecture .*" -> "ld: Undefined symbols:"
1213
//@ normalize-stderr-test: "._CFRunLoopGetTypeID.," -> "_CFRunLoopGetTypeID,"

0 commit comments

Comments
 (0)