D-Programming-Language/phobos — pull request #2127 by andralex (2014-04-26 17:25:24+00:00)
Title: Eliminate druntime_libs target

I just noticed that two successive makes of phobos build the library twice:

make -f posix.mak
... runs dmd ...
make -f posix.mak
... runs dmd again ...

This shouldn't happen. A bit of investigation reveals that the druntime_libs phony rule is the culprit.

This pull request eliminates druntime_libs entirely. The disadvantage is that druntime is only made if libdruntime.a is missing, but not when it's out of date. Anyone knows how to improve that? Ideally make will always be invoked for druntime, but phobos will be remade only if druntime had been, in fact, changed.