-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Add new Foundation libraries to SwiftRuntimeLibsOrdered #76019
Add new Foundation libraries to SwiftRuntimeLibsOrdered #76019
Conversation
@swift-ci please smoke test |
I think you can remove the icu libs now: those are no longer built or shipped separately. |
@@ -231,15 +231,19 @@ int autolink_extract_main(ArrayRef<const char *> Args, const char *Argv0, | |||
"-lswift_RegexBuilder", |
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.
This is now swiftRegexBuilder
.
As long as we're here, might as well update this list for 6.1. Some more candidates for addition: @stephentyrone, @ktoso, @grynspan, @al45tair, wdyt, should we add any of those? |
I honestly don't know. :) |
@grynspan, try this: find a large project with many |
Ah, yes, one per file. So sounds like we should add Testing as you've suggested. |
@al45tair and @FranzBusch, mind pushing this change through to completion and into Swift 6? We are going to see a regression with a ton of repeated linker flags on linux and other Unix platforms otherwise. It looks like everybody went on summer vacation in the last couple weeks when this was proposed, but with the Swift 6 release likely coming in the next month, we should get this in. |
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.
Ouch, this is a great catch! Definitely something to consider pulling into 6.0.
CC: @parkera
Thanks, @compnerd, do you have an opinion on which other of the new runtime libraries listed above should also be de-duplicated? |
I'd say that |
Alright, if someone would go ahead and merge, @jmschonfeld doesn't seem to be active lately, so I went ahead and submitted #76224 with my remaining suggestions for this pull, so we can get those in separately. |
Sorry for the delay @finagolfin! I'll go ahead and merge this one, thanks for the followup PR! |
Now that Foundation has added a handful of new libraries to the build that are linked from
Foundation
itself, we're seeing a handful of build logs that contain contents like the following:Per swiftlang/swift-foundation#872, this list seems to be used to deduplicate linked libraries for common libraries. This change adds the new Foundation dynamic libraries (
FoundationEssentials
,FoundationInternationalization
, and_FoundationICU
) along withswiftSynchronization
(which Foundation also links now) to this list for deduplication to help minimize the issues caused by these repeated link flags.(I'm not extremely familiar with this list, but it seems that since Foundation is already there we should add the new Foundation libraries, however feel free to let me know if we shouldn't do this or if there's a different change that should be made)