# # # patch "ChangeLog" # from [518ee172d4c0c6af3292370c557874c534731681] # to [799d62f415fe212cd15ceaa5b33fdc95200df61a] # # patch "HACKING" # from [54335ea1fe81e8117366e5a82c5e56d86ba951cc] # to [9192838166bf96f1f7d8369bc1ac8fcc8dc74be7] # # patch "INSTALL" # from [54295f34283c38aee1a57864548eceeeae69f4c3] # to [e8c5a114eb284a7163393b4721179147dbc165ac] # ============================================================ --- ChangeLog 518ee172d4c0c6af3292370c557874c534731681 +++ ChangeLog 799d62f415fe212cd15ceaa5b33fdc95200df61a @@ -1,3 +1,9 @@ +2005-01-25 Matt Johnston + + * HACKING: add some notes about compiling - precompiled headers, + -O0, and ccache. + * INSTALL: mention --enable-pch + 2005-01-24 Timothy Brownawell Make a netsync client crash not hang the testsuite. ============================================================ --- HACKING 54335ea1fe81e8117366e5a82c5e56d86ba951cc +++ HACKING 9192838166bf96f1f7d8369bc1ac8fcc8dc74be7 @@ -259,3 +259,20 @@ third-party code may not make sense to send upstream. In this case, make a note of this in the file you're changing and in the ChangeLog so that this permanent deviation is documented. + + +Compiling Hints +--------------- + + - monotone's compilation time can be improved significantly by compiling + with 'CXXFLAGS=-O0'. Note that disabling optimisation makes the resultant + binary significantly slower - don't bother using it for performance + profiling. + + - precompiled headers can be enabled by running 'configure' with --enable-pch + This should give shorter compile times, given boost's extensive use of + templates. Some versions of gcc have issues with precompiled headers, so if + you get strange compilation errors, try disabling them. + + - ccache (http://ccache.samba.org/) is quite effective for speeding up + repeated compiles of the same source. ============================================================ --- INSTALL 54295f34283c38aee1a57864548eceeeae69f4c3 +++ INSTALL e8c5a114eb284a7163393b4721179147dbc165ac @@ -136,6 +136,12 @@ note that, sometimes, the configure script will be able to guess the correct suffix by itself. + --enable-pch + + this will enable precompiled headers, which should improve compile + time. some versions of gcc have problems with this option, so + try disabling it if you run into trouble. + 3. building monotone * type "make". this should produce a monotone binary in your current