Skip to content
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

Accept pure static libraries without object files as -lib inputs #4731

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kinke
Copy link
Member

@kinke kinke commented Aug 11, 2024

Currently, we disallow commands like ldc2 -lib lib1.a lib2.a -of=libmerged.a, requiring at least one object file input.

@kinke
Copy link
Member Author

kinke commented Aug 11, 2024

Not directly related, but turns out we don't actually merge .a libs on Posix as I had assumed (AFAIK, this 'just works' on Windows - by specifying the .lib inputs like regular .obj inputs in the lib.exe cmdline), the 'merged' .a archive contains the nested .a libs, not their object files, making it unusable.

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.

1 participant