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>
Thu, 26 Feb 2009 13:43:44 +0000 (13:43 +0000)
Like ccache, but works on all OSes.

scons/gallium.py

index 2e490dde6e9adc082328f2e6796bc60070a570e5..9fa8d8ba89eea45b4148ac5a1cc1ece460212513 100644 (file)
@@ -206,6 +206,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 = []