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

sourceLibrary should not compile in unused files #1778

Open
Geod24 opened this issue Sep 30, 2019 · 0 comments
Open

sourceLibrary should not compile in unused files #1778

Geod24 opened this issue Sep 30, 2019 · 0 comments

Comments

@Geod24
Copy link
Member

Geod24 commented Sep 30, 2019

System information

  • dub version: DUB version 1.17.0, built on Sep 7 2019
  • OS Platform and distribution: Any
  • compiler version: Any

Bug Description

Currently, sourceLibrary referenced by a project will be fully included in this project.
This means that, for example, if a library provides binding to a C library it uses internally,
but those bindings are never used by the application, it will still need to link in this library.
This result in longer compilation time, larger executable, and increased number of dependencies.

How to reproduce?

Create a sourceLibrary, make it depend on a C library, then compile your project that depends on it without including anything from it.

Expected Behavior

rdmd-style approach to dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant