From 2627c7b120bad3d3e801c4446b2c798fe137ac4b Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Thu, 6 Nov 2025 09:52:40 -0500 Subject: [PATCH] Remove VERSION.txt workaround for OpenBSD 7.7. 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 --- Sources/_TestingInternals/Versions.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Sources/_TestingInternals/Versions.cpp b/Sources/_TestingInternals/Versions.cpp index 8ca708b26..66fc3c985 100644 --- a/Sources/_TestingInternals/Versions.cpp +++ b/Sources/_TestingInternals/Versions.cpp @@ -44,9 +44,6 @@ const char *swt_getTestingLibraryVersion(void) { #warning SWT_TESTING_LIBRARY_VERSION not defined and VERSION.txt not found: testing library version is unavailable return nullptr; #endif -#elif defined(__OpenBSD__) - // OpenBSD's version of clang doesn't support __has_embed or #embed. - return nullptr; #else #warning SWT_TESTING_LIBRARY_VERSION not defined and could not read from VERSION.txt at compile time: testing library version is unavailable return nullptr;