dub icon indicating copy to clipboard operation
dub copied to clipboard

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

Open Mai-Lapyst opened this issue 1 year ago • 0 comments

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.

Mai-Lapyst avatar Feb 03 '24 19:02 Mai-Lapyst