wilzbach / tools-test

1 stars 0 forks source link

Dub recompiles all the files when only one was edited compiling --build-mode=singleFile #175

Closed wilzbach closed 6 years ago

wilzbach commented 6 years ago

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

Original bug ID: BZ#17946 From: Temtaime <temtaime@gmail.com> Reported version: D2 CC: b2.temp@gmx.com, kinke@gmx.net

wilzbach commented 6 years ago

Comment author: Temtaime <temtaime@gmail.com>

See title. It should not recompile files until they are edited

wilzbach commented 6 years ago

Comment author: kinke@gmx.net

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.

wilzbach commented 6 years ago

Comment author: Temtaime <temtaime@gmail.com>

No, it compiles all the files to many object files, so it can it. I already patched source to do such a behavior

wilzbach commented 6 years ago

Comment author: kinke@gmx.net

(In reply to Temtaime from comment BZ#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.

wilzbach commented 6 years ago

Comment author: Basile B. <b2.temp@gmx.com>

Sorry but valid or invalid, DUB has no category here so its bugs must be reported here: https://github.com/dlang/dub/issues.