Skip to content

Commit

Permalink
betterC flag enabled in generated visuald project file.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZoraman authored and PetarKirov committed Nov 17, 2020
1 parent 78765f2 commit a14ac6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/betterc-generated-in-visuald.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Add support for -betterC compiler flag to the visuald project generator

If betterC is specified in the buildOptions, visuald project files will also be
configured to use betterC.
3 changes: 3 additions & 0 deletions source/dub/generators/visuald.d
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ class VisualDGenerator : ProjectGenerator {
// Unittests
ret.formattedWrite(" <useUnitTests>%s</useUnitTests>\n", buildsettings.options & BuildOption.unittests ? "1" : "0");

// Better C
ret.formattedWrite(" <betterC>%s</betterC>\n", buildsettings.options & BuildOption.betterC ? "1" : "0");

// compute directory for intermediate files (need dummy/ because of how -op determines the resulting path)
size_t ndummy = 0;
foreach (f; buildsettings.sourceFiles) {
Expand Down

0 comments on commit a14ac6c

Please sign in to comment.