Bug 4686 – rdmd could use an incremental compilation option

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-08-19T17:46:00Z
Last change time
2013-03-09T21:06:30Z
Assigned to
andrei
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2010-08-19T17:46:03Z
rdmd should have the ability (probably through a flag like "--incremental") to keep the generated object files and only recompile the modules that have been changed (or are dependent on a module that has been changed).
Comment #1 by andrei — 2013-02-26T09:11:01Z
Isn't this already the case?
Comment #2 by dlang-bugzilla — 2013-02-26T09:14:10Z
No. rdmd simply does not recompile if no source files changed, but if at least one changes, it rebuilds the whole program. rdmd compiles all modules at once. There are known bugs in DMD that prevent incremental compilation while passing multiple files to DMD, so in order to support incremental compilation, rdmd would need to invoke the compiler once for every module. This would slow it down considerably in the general case.
Comment #3 by andrei — 2013-02-26T09:50:43Z
Got it. So let's keep this open, I foresee a solution in which rdmd would be able to decide which approach to take depending on various heuristics.
Comment #4 by dlang-bugzilla — 2013-03-09T21:06:30Z
Issue 9673 is Andrei's proposal to implement this. Discussion: http://forum.dlang.org/post/[email protected] *** This issue has been marked as a duplicate of issue 9673 ***