scons: Use a cache for built files.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 23 Jan 2009 21:01:16 +0000 (21:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 23 Jan 2009 21:01:16 +0000 (21:01 +0000)
Like ccache, but works on all OSes.

scons/gallium.py

index 65dd0ab664f56bab44c1dad671dde627a5c948a8..4825e4098c72341e74fb6cfe50c66ea6634b4370 100644 (file)
@@ -207,6 +207,7 @@ def generate(env):
     # different scons versions building the same source file
     env['build'] = build_dir
     env.SConsignFile(os.path.join(build_dir, '.sconsign'))
+    env.CacheDir('build/cache')
 
     # C preprocessor options
     cppdefines = []