Shorter build times
David Jarvie
lists at astrojar.org.uk
Wed Mar 28 10:47:08 BST 2007
On Wednesday 28 March 2007 10:34, David Faure wrote:
> On Wednesday 28 March 2007, Krzysztof Lichota wrote:
>> Which reminds me of another trick I used at work when building large
>> projects. By default build system compiles files in order specified in
>> Makefile/other control file. If I was working on one header and one
>> source file and there were other files dependent on this header, build
>> system rebuilt them in this static order until it got to source file
>> corresponding to header file, while often if there was an error, I would
>> change header again and go through rebuilding all these files again. So
>> I changed list of compiled files to be autogenerated in order of
>> modification time, so that file I am working on is compiled first. This
>> saved me a lot of time :)
>
> A simpler solution is "make myfile.o"
> (which is bound to Shift+F6 if you use kde-emacs with
> kde-emacs-bindings.el)
Or rather "make myfile.o && make" if you want to rebuild the module. The
trouble I find is that often I either don't expect the compilation to fail
(since my edits are always perfect ;) ) or I just don't think to check the
changed file first, so I just type "make". Auto-generation of the
compilation order would cater automatically for these thoughtless moments
and actually save a significant amount of time (for me, at least).
--
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm
More information about the kde-core-devel
mailing list