dlang / dub

Package and build management system for D
MIT License
677 stars 227 forks source link

Dub does not cache single-file builds with DFLAGS #2673

Open CyberShadow opened 1 year ago

CyberShadow commented 1 year ago
$ DFLAGS=-unittest dub test.d
(compiles test.d...)
(runs test.d)

$ DFLAGS=-unittest dub test.d
(compiles test.d... again)
(runs test.d)

For some reason this only applies when DFLAGS is set. Without it, Dub caches the executable as expected.

See also #2672.