We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcaa64 commit 3deaa5bCopy full SHA for 3deaa5b
Sources/_TestingInternals/Versions.cpp
@@ -18,7 +18,7 @@ const char *swt_getTestingLibraryVersion(void) {
18
#if defined(SWT_TESTING_LIBRARY_VERSION)
19
// The current environment explicitly specifies a version string to return.
20
return SWT_TESTING_LIBRARY_VERSION;
21
-#elif __clang_major__ >= 19
+#elif __clang_major__ >= 17 && defined(__has_embed)
22
#if __has_embed("../../VERSION.txt")
23
static constinit auto version = [] () constexpr {
24
// Read the version from version.txt at the root of the package's repo.
0 commit comments