Skip to content

Commit

Permalink
Only add platform flags for targets that generate an actual binary. F…
Browse files Browse the repository at this point in the history
…ixes #346.
  • Loading branch information
s-ludwig committed Jun 12, 2014
1 parent e3c3cfd commit 07bc641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dub/generators/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class ProjectGenerator
}

// start to build up the build settings
BuildSettings buildsettings = settings.buildSettings.dup;
BuildSettings buildsettings;
if (generates_binary) buildsettings = settings.buildSettings.dup;
processVars(buildsettings, m_project, pack, shallowbs, true);

// remove any mainSourceFile from library builds
Expand Down

0 comments on commit 07bc641

Please sign in to comment.