Skip to content

Commit 3deaa5b

Browse files
authored
Update Versions.cpp
clang in CI jobs is 17.x but can handle `__has_embed`.
1 parent ddcaa64 commit 3deaa5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_TestingInternals/Versions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const char *swt_getTestingLibraryVersion(void) {
1818
#if defined(SWT_TESTING_LIBRARY_VERSION)
1919
// The current environment explicitly specifies a version string to return.
2020
return SWT_TESTING_LIBRARY_VERSION;
21-
#elif __clang_major__ >= 19
21+
#elif __clang_major__ >= 17 && defined(__has_embed)
2222
#if __has_embed("../../VERSION.txt")
2323
static constinit auto version = [] () constexpr {
2424
// Read the version from version.txt at the root of the package's repo.

0 commit comments

Comments
 (0)