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

object files listed in sourceFiles are ignored when building a static library #2836

Open
Mai-Lapyst opened this issue Feb 3, 2024 · 0 comments

Comments

@Mai-Lapyst
Copy link

System information

  • dub version: 1.35.1 as well as master
  • OS Platform and distribution: Arch Linux
  • compiler version: dmd v2.106.1

Bug Description

Using a targetType of staticLibrary ignores objectfiles in sourceFiles.

How to reproduce?

  • create a new project (e.g. dub init)
  • set the targetType manually to staticLibrary
  • create a externally build objectfile (e.g. from c/c++) and add it's path to sourceFiles
  • add some dlang source
  • run dub build -v; the dmd command donst include the object file, nor is it or it's symbols contained in the resulting .a (when inspected with for example nm)

Expected Behavior

That objectfiles listed in sourceFiles are included in the resulting static library.

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

No branches or pull requests

1 participant