-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Disallow static linking core libraries in swift test
#7087
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 is currently not supported and we should show a proper error message in this case. Resolves rdar://117908112.
cc @grynspan this may need to be updated when |
@swift-ci test |
swift-testing is agnostic here. As it's also just a package, it only needs the symbols it uses to eventually exist, and isn't too concerned with the state of the linker. |
Great, then you'll just need to make this static linking check specific to XCTest in your |
Hm, why aren't we just removing the option? It seems a bit weird to have an option that 100% leads to an error. |
We can't remove it since it's a linker option shared with |
In that case, I think we should move the option so that we can have it only apply to |
What's the best place to move it? |
I think we would move it to |
@swift-ci test |
@swift-ci test windows |
Doesn't seem to be currently possible, as we construct |
One option could be moving the static stdlib option to |
@swift-ci test |
@swift-ci test windows |
@swift-ci test windows |
This is currently not supported and we should show a proper error message in this case.
Resolves rdar://117908112.