Changes

Jump to navigation Jump to search
add section about using ccache
Line 170: Line 170:  
== Compiling using 2 or more CPU cores ==
 
== Compiling using 2 or more CPU cores ==
   −
Before running <code>./sugar-jhbuild build</code>, append this to sugar.jhbuildrc:
+
Before running <code>./sugar-jhbuild build</code>, append this to <code>sugar.jhbuildrc</code>:
    
<pre>
 
<pre>
Line 177: Line 177:     
Adjust the numbers to be twice the number of CPU cores in your machine.
 
Adjust the numbers to be twice the number of CPU cores in your machine.
 +
 +
== Using ccache to speed up rebuilds ==
 +
 +
To speed up full rebuilds of sugar-jhbuild (i.e. running <code>./sugar-jhbuild build</code> after removing the <code>source</code> directory) you can use [http://ccache.samba.org/ ccache]. Install it and append the following to <code>sugar.jhbuildrc</code>:
 +
 +
<pre>
 +
os.environ["CCACHE_DIR"] = os.path.join(os.path.dirname(__file__), "ccache")
 +
os.environ["PATH"] = "/usr/lib/ccache:"+os.environ["PATH"]
 +
</pre>
 +
 +
Adjust <code>/usr/lib/ccache</code> to the path used by your distribution and create the <code>ccache</code> directory (inside your <code>sugar-jhbuild</code> checkout).
    
==Useful Internal Links==
 
==Useful Internal Links==
344

edits

Navigation menu