Em Dom, 2014-01-26 às 23:56 +0100, Krzysztof Kosiński escreveu:
2014-01-26 Martin Owens <doctormo@...400...>:
> But maybe if waf can compile things in a smarter way. Every time I
> edited document.h, I has to wait a long time for the compile because it
> currently compiles every included file (and I understand why it might
> need to) but perhaps some kind of manual command to say `make document.o
> only and relink`

If you edit document.h, you must rebuild every file that includes
document.h - there is no way around that, in any build system in
existence. It is theoretically possible to check whether the edits
change API/ABI and only recompile then, but this would be incredibly
complex to implement; I don't even know whether this is possible at
all.

The problem will disturb less when we have modules[1] in C++. Unfortunately, the spec was getting more complex after each iteration.

[1] http://llvm.org/devmtg/2012-11/Gregor-Modules.pdf


--
Vinícius dos Santos Oliveira
https://about.me/vinipsmaker