[Autolink Extract] Filter out StringProcessing library from being linked more than once.

We cannot filter all libraries because duplicate -l flags have a semantic meaning based on their order, but filtering out just the common Swift libraries should yield a good size improvement already and is safe.
This commit is contained in:
Artem Chikin
2022-11-28 15:39:34 -08:00
parent 3617b7603c
commit a69ba3a03c
2 changed files with 6 additions and 2 deletions

View File

@@ -249,6 +249,8 @@ int autolink_extract_main(ArrayRef<const char *> Args, const char *Argv0,
{"-lswiftSwiftOnoneSupport", false},
{"-lswiftCore", false},
{"-lswift_Concurrency", false},
{"-lswift_StringProcessing", false},
{"-lswift_RegexParser", false}
};
// Extract the linker flags from the objects.