Skip to content

Commit

Permalink
[don't pass flags down to shared-library deps]
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jan 11, 2024
1 parent 5974adb commit 547b120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/generators/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class ProjectGenerator
{
foreach (name, ref ti; targets)
{
if (&ti != roottarget)
if (&ti != roottarget && ti.buildSettings.targetType != TargetType.dynamicLibrary)
{
import std.range : chain;
ti.buildSettings.dflags = ti.buildSettings.dflags
Expand Down

0 comments on commit 547b120

Please sign in to comment.