-
Notifications
You must be signed in to change notification settings - Fork 108
Add a new _TestDiscovery library/target. #981
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
This PR factors out our test discovery logic into a separate module that can be imported and linked to without needing to build all of Swift Syntax and Swift Testing. This allows test library developers to start experimenting with using the new (still experimental) test content section without needing to link to a package copy of Swift Testing.
@swift-ci test |
@swift-ci test |
@swift-ci test |
efe4a4a
to
b7ec1a8
Compare
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test |
target_compile_options(_TestDiscovery PRIVATE | ||
-enable-library-evolution | ||
-emit-module-interface -emit-module-interface-path $<TARGET_PROPERTY:_TestDiscovery,Swift_MODULE_DIRECTORY>/_TestDiscovery.swiftinterface) | ||
set(CMAKE_STATIC_LIBRARY_PREFIX_Swift "lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should hoist this to the top level CMakeLists.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it affects anything else right now—do you feel strongly about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its best to keep this at the top level - it would be very confusing and annoying to someone not aware of it and adding another library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do it in a follow-up PR just because this one's already passed toolchain builds and I'd like to not tempt fate.
@swift-ci test |
@swift-ci test |
This PR factors out our test discovery logic into a separate module that can be imported and linked to without needing to build all of Swift Syntax and Swift Testing.
This allows test library developers to start experimenting with using the new (still experimental) test content section without needing to link to a package copy of Swift Testing.
Resolves rdar://145694068.
Checklist: