Do not build dependencies of static libraries. Fixes #316.
1 parent 124f133 commit 4e14989bc0418356dcc36d8ba3dc7d3d0875059f
@Sönke Ludwig Sönke Ludwig authored on 9 May 2014
Showing 1 changed file
View
10
source/dub/generators/build.d
buildTarget(settings, bs, ti.pack, ti.config, ti.packages);
}
 
// build all targets
if (settings.rdmd) {
// RDMD always builds everything at once
auto ti = targets[m_project.rootPackage.name];
buildTarget(settings, ti.buildSettings.dup, m_project.rootPackage, ti.config, ti.packages);
auto root_ti = targets[m_project.rootPackage.name];
if (settings.rdmd || root_ti.buildSettings.targetType == TargetType.staticLibrary) {
// RDMD always builds everything at once and static libraries don't need their
// dependencies to be built
buildTarget(settings, root_ti.buildSettings.dup, m_project.rootPackage, root_ti.config, root_ti.packages);
} else buildTargetRec(m_project.rootPackage.name);
}
 
override void performPostGenerateActions(GeneratorSettings settings, in TargetInfo[string] targets)