Bug 17946 – Dub recompiles all the files when only one was edited compiling --build-mode=singleFile
Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-10-28T16:53:31Z
Last change time
2020-03-21T03:56:34Z
Assigned to
No Owner
Creator
Temtaime
Comments
Comment #0 by temtaime — 2017-10-28T16:53:31Z
See title.
It should not recompile files until they are edited
Comment #1 by kinke — 2017-10-28T17:25:27Z
It has to with `--build-mode=singleFile`. It means 'compile all D files into a single object file', so it cannot reuse previous compilation results.
Comment #2 by temtaime — 2017-10-28T18:52:32Z
No, it compiles all the files to many object files, so it can it.
I already patched source to do such a behavior
Comment #3 by kinke — 2017-10-28T19:10:51Z
(In reply to Temtaime from comment #2)
> No, it compiles all the files to many object files, so it can it.
> I already patched source to do such a behavior
Ah sorry my bad, I confused it with LDC's `-singleobj`.