Skip to content

[6.0.0] Plumb through the testing library version into a function instead of a C++ macro. #650

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

Merged

Conversation

grynspan
Copy link
Contributor

Explanation: Correctly sets the testing library version (it was failing to set on the Swift side.)
Scope: Building with CMake
Issue: N/A
Original PR: #648
Risk: Low
Testing: Built a toolchain and verified the string was ingested all the way through.
Reviewer: @grynspan @briancroom

…a macro.

This PR moves the consumption of the testing library version (via C++ macro
`SWT_TESTING_LIBRARY_VERSION`) to a C++ function. It seems that defining it
in CMake for C++ targets doesn't trigger for the Swift side when it imports
symbols from C headers.

Will verify with a toolchain build.
@grynspan grynspan added bug 🪲 Something isn't working swift-6 build 🧱 Affects the project's build configuration or process labels Aug 28, 2024
@grynspan grynspan self-assigned this Aug 28, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 9aa8076 into release/6.0.0 Aug 29, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/get-version-from-cmake-a-different-way-6.0.0 branch August 29, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working build 🧱 Affects the project's build configuration or process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants