Skip to content

Commit

Permalink
LDC: Fix ddox options (output single dummy file, like DMD and GDC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jan 24, 2025
1 parent 8fda5c3 commit 72c2504
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion source/dub/compilers/ldc.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LDCCompiler : Compiler {
tuple(BuildOption.color, ["-enable-color"]),

tuple(BuildOption._docs, ["-Dd=docs"]),
tuple(BuildOption._ddox, ["-Xf=docs.json", "-Dd=__dummy_docs"]),
tuple(BuildOption._ddox, ["-Xf=docs.json", "-Df=__dummy.html"]),
];

@property string name() const { return "ldc"; }
Expand Down
2 changes: 0 additions & 2 deletions source/dub/generators/build.d
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ class BuildGenerator : ProjectGenerator {
if (settings.buildType == "ddox") {
if ("__dummy.html".exists)
removeFile("__dummy.html");
if ("__dummy_docs".exists)
rmdirRecurse("__dummy_docs");
}

// run post-build commands
Expand Down

0 comments on commit 72c2504

Please sign in to comment.