Skip to content

[Autolink Extract] Keep a set of linker flags instead of vector #58800

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
merged 1 commit into from
May 23, 2022

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented May 10, 2022

Otherwise we can duplicate linker flags across input binaries, which can result in very large linkerr invocation commands.

Resolves #58380

@artemcm
Copy link
Contributor Author

artemcm commented May 10, 2022

@swift-ci please test Linux

@artemcm
Copy link
Contributor Author

artemcm commented May 10, 2022

@swift-ci smoke test macOS

@artemcm
Copy link
Contributor Author

artemcm commented May 10, 2022

@swift-ci please test Windows

@artemcm artemcm force-pushed the AutoLinkExtractSet branch from e80b867 to e7ca29d Compare May 10, 2022 22:28
@artemcm
Copy link
Contributor Author

artemcm commented May 10, 2022

@swift-ci please test

@artemcm artemcm force-pushed the AutoLinkExtractSet branch from e7ca29d to 32e477b Compare May 12, 2022 21:54
@artemcm
Copy link
Contributor Author

artemcm commented May 12, 2022

@swift-ci please test

@CodaFi
Copy link
Contributor

CodaFi commented May 13, 2022

This is iterated over at the tail of autolink_extract_main. Should this be a SetVector instead?

@artemcm artemcm force-pushed the AutoLinkExtractSet branch from 32e477b to 9f0abea Compare May 13, 2022 16:25
@artemcm
Copy link
Contributor Author

artemcm commented May 13, 2022

@swift-ci please test

@artemcm artemcm force-pushed the AutoLinkExtractSet branch from 9f0abea to 476db5b Compare May 13, 2022 18:34
@artemcm
Copy link
Contributor Author

artemcm commented May 13, 2022

@swift-ci please test

@artemcm artemcm force-pushed the AutoLinkExtractSet branch 2 times, most recently from 417d108 to 3142b87 Compare May 19, 2022 18:47
@artemcm
Copy link
Contributor Author

artemcm commented May 19, 2022

@swift-ci please test

@artemcm artemcm force-pushed the AutoLinkExtractSet branch from 3142b87 to d2f4a98 Compare May 20, 2022 16:24
@artemcm
Copy link
Contributor Author

artemcm commented May 20, 2022

@swift-ci please test

@artemcm artemcm requested a review from fredriss May 20, 2022 22:06
Otherwise we can duplicate linker flags across input binaries, which can result in very large linkerr invocation commands.

Resolves swiftlang#58380
@artemcm artemcm force-pushed the AutoLinkExtractSet branch from d2f4a98 to 10a187d Compare May 20, 2022 22:18
@artemcm
Copy link
Contributor Author

artemcm commented May 20, 2022

@swift-ci please test

@artemcm artemcm merged commit 54102ef into swiftlang:main May 23, 2022
@compnerd
Copy link
Member

I have concerns over this change. This subtly changes the linker behaviour in an unexpected way potentially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SR-16121] Increasingly excessive memory requirements for linking on Linux
4 participants