Skip to content

Commit bff9edc

Browse files
committed
stdlib: fix the build with macOS long tests
When building swift on macOS with long tests, the build would fail with undefined references to these symbols. The undefined symbols were expected to be present in swiftCore against which we link. However, because the symbols are marked as internal, they would be dead stripped before the dylib was constructed. As a result, we would end up with undefined references to these symbols. Expose the additional internal interfaces for now so that we can build the tests.
1 parent f5989d2 commit bff9edc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

unittests/runtime/Stdlib.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,23 @@ bool _swift_dictionaryDownCastConditionalIndirect(OpaqueValue *destination,
119119
const void *targetKeyHashable) {
120120
abort();
121121
}
122+
123+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERNAL
124+
int _T0s13_getErrorCodeSiSPyxGs0B0RzlF(void *) {
125+
abort();
126+
}
127+
128+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERNAL
129+
void *_T0s23_getErrorDomainNSStringyXlSPyxGs0B0RzlF(void *) {
130+
abort();
131+
}
132+
133+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERNAL
134+
void *_T0s29_getErrorUserInfoNSDictionaryyXlSgSPyxGs0B0RzlF(void *) {
135+
abort();
136+
}
137+
138+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERNAL
139+
void *_T0s32_getErrorEmbeddedNSErrorIndirectyXlSgSPyxGs0B0RzlF(void *) {
140+
abort();
141+
}

0 commit comments

Comments
 (0)