Skip to content

Commit 2c3088b

Browse files
kinkedlang-bot
authored andcommitted
ddoc_preprocessor: Don't depend on entire DMD frontend, only include single dmd.cli module
We only need a single module, and it's totally isolated too - for now. Besides somewhat speeding up the ddoc_preprocessor tool build, the main advantage is that we lift the dependency on DMD's `dub.sdl`. The build is currently using a stable dub v1.17, and this limits what we can do with DMD's dub.sdl, such as requiring newer dub versions, what I'd need in dlang/dmd#16756.
1 parent 19bf7a4 commit 2c3088b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ddoc/dub.sdl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name "ddoc_preprocessor"
22
description "Preprocesses source code before running Ddoc over it"
33
dependency "libdparse" version="~>0.15.1"
4-
dependency "dmd" path="../../dmd"
5-
versions "DdocOptions"
4+
# we only need an isolated single module from DMD
5+
sourceFiles "../../dmd/compiler/src/dmd/cli.d"
6+
importPaths "source" "../../dmd/compiler/src"
7+
versions "DdocOptions" # for dmd.cli
68
buildRequirements "disallowDeprecations"
79
configuration "executable" {
810
versions "IsExecutable"

0 commit comments

Comments
 (0)