Skip to content

Commit

Permalink
betterC flag enabled in generated visuald project file. Fixes #2024
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZoraman committed Oct 14, 2020
1 parent 7c54f98 commit 25f9d6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/betterc-generated-in-visuald.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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 @@ -310,6 +310,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 25f9d6b

Please sign in to comment.