On Sat, Nov 24, 2018 at 09:20:08AM +0000, Chris Katko via Digitalmars-d-learn wrote: > On Friday, 23 November 2018 at 10:00:17 UTC, Nicholas Wilson wrote: > > > > If you pass all the files on the command line then they all get > > (re)compiled. > > How are you supposed include files if not passing them to the > compiler? > > I'm only using std.regex in one file, IIRC, so whatever the "proper" > way to only compile changed files should improve it drastically. [...]
Use separate compilation: dmd -c module1.d dmd -c module2.d ... dmd module1.o module2.o ... -of/usr/bin/myprogram Put this in a makefile or your build system of choice, and let it do incremental builds. T -- Государство делает вид, что платит нам зарплату, а мы делаем вид, что работаем.