-
Notifications
You must be signed in to change notification settings - Fork 124
Move the package version to VERSION.txt. #1304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci test |
793ed7d
to
35e2e06
Compare
This change moves the definition of Swift Testing's version to a new file, version.txt. This file doesn't represent a standard, _per se_, but it is common for open-source projects to list their version info in such a file. And by putting our version info in this file, we can share it between package builds and CMake builds.
… rely on it being a macro instead, I guess
2623161
to
afa1d9c
Compare
Also, looks like there's a conflict with my PR #1312 since I touched many CMake files |
Will fix the conflict. |
FYI: for OpenBSD, the native platform compiler doesn't support C23 yet, so this causes an error ( |
We should always be building with (a recent) clang, but if there's an OpenBSD-specific issue, can it be solved by setting the |
I don't think so, but instead, we could probably also do something like a platform specific |
Or just |
That won't work on older clang versions (see e.g. https://godbolt.org/z/edGb78fbd). |
This change moves the definition of Swift Testing's version to a new file, VERSION.txt. This file doesn't represent a standard, per se, but it is common for open-source projects to list their version info in such a file. And by putting our version info in this file, we can share it between package builds and CMake builds.
Currently using C23's
#embed
which is supported in clang as a non-standard extension. C++26 will add support for#embed
.Checklist: