wilzbach / tools-test

1 stars 0 forks source link

rdmd code should be split in reusable libraries #160

Open wilzbach opened 7 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#17069 From: Timothee Cour <timothee.cour2@gmail.com> Reported version: D2

wilzbach commented 7 years ago

Comment author: Timothee Cour <timothee.cour2@gmail.com>

rdmd is insufficient to build D applications: (A) mainly because of this 6 year old bug https://issues.dlang.org/show_bug.cgi?id=7016 local import does not create -deps dependency (B) no support for partial recompilation (blocked by lack of -oq, which ldc has but not dmd: https://github.com/dlang/dmd/pull/1871 has been pending for 4 years; see also https://issues.dlang.org/show_bug.cgi?id=3541: Add -oq to dmd (use fully qualified module name as object filename) ; https://issues.dlang.org/show_bug.cgi?id=12116: dmd -op -od broken)

I built a build system for my use cases that addresses (A) and (B) (suboptimally though) based on forking off rdmd but it's very hard to keep in sync with rdmd because of rdmd's monolithic design:

Recommendations: