D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17946 - Dub recompiles all the files when only one was edited compiling --build-mode=singleFile
Summary: Dub recompiles all the files when only one was edited compiling --build-mode=...
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 16:53 UTC by Temtaime
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Temtaime 2017-10-28 16:53:31 UTC
See title.
It should not recompile files until they are edited
Comment 1 kinke 2017-10-28 17:25:27 UTC
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 Temtaime 2017-10-28 18:52:32 UTC
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 kinke 2017-10-28 19:10:51 UTC
(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`.
Comment 4 basile-z 2017-10-29 07:44:59 UTC
Sorry but valid or invalid, DUB has no category here so its bugs must be reported here: https://github.com/dlang/dub/issues.