Skip to content

Commit db33906

Browse files
authored
Remove VERSION.txt workaround for OpenBSD 7.7. (#1397)
This PR removes a workaround for the lack of `#embed` support in OpenBSD 7.7's version of clang. OpenBSD 7.8 has a newer clang that has full `#embed` support, so we no longer need to special-case OpenBSD here. Swift Testing will continue to compile for OpenBSD 7.7, but will emit a compile-time warning of the form: > SWT_TESTING_LIBRARY_VERSION not defined and could not read from VERSION.txt at > compile time: testing library version is unavailable ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent d341a65 commit db33906

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/_TestingInternals/Versions.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ const char *swt_getTestingLibraryVersion(void) {
4444
#warning SWT_TESTING_LIBRARY_VERSION not defined and VERSION.txt not found: testing library version is unavailable
4545
return nullptr;
4646
#endif
47-
#elif defined(__OpenBSD__)
48-
// OpenBSD's version of clang doesn't support __has_embed or #embed.
49-
return nullptr;
5047
#else
5148
#warning SWT_TESTING_LIBRARY_VERSION not defined and could not read from VERSION.txt at compile time: testing library version is unavailable
5249
return nullptr;

0 commit comments

Comments
 (0)