dub
dub copied to clipboard
object files listed in sourceFiles are ignored when building a static library
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
targetTypemanually tostaticLibrary - 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 examplenm)
Expected Behavior
That objectfiles listed in sourceFiles are included in the resulting static library.