-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Dependency Scanning] Collect and report each module dependency's Link Libraries #73907
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
2b24dae
to
51fb270
Compare
std::function<void(const LinkLibrary&)> RegistrationCallback) { | ||
if (Target.isOSDarwin()) | ||
RegistrationCallback(LinkLibrary("c++", LibraryKind::Library)); | ||
else if (Target.isOSLinux()) |
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 thought Android used libc++ and not libstdc++?
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.
The core logic here just moved from how it was in GenDecl.cpp
. But @egorzhdan may know the answer.
4fd42c8
to
04191c2
Compare
04191c2
to
6f5751a
Compare
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.
What do you think about the idea that forceLinked library should be pass to linker as full path so linker will not drop it when nothing from it is referenced? (Might need to check linker semantics for all the supported platforms/linkers). Then we can drop FORCE_LINK symbols too when explicit auto link is used.
@@ -93,12 +95,10 @@ struct ModuleDependencyID { | |||
std::string ModuleName; | |||
ModuleDependencyKind Kind; | |||
bool operator==(const ModuleDependencyID &Other) const { | |||
return std::tie(ModuleName, Kind) == | |||
std::tie(Other.ModuleName, Other.Kind); | |||
return std::tie(ModuleName, Kind) == std::tie(Other.ModuleName, Other.Kind); |
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.
Nit: avoid re-formatting unchanged logic. This makes review and git blame hard.
6f5751a
to
d064d30
Compare
d064d30
to
d708635
Compare
No description provided.