Mesa (gallium-0.2): scons: Use a cache for built files.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Jan 23 21:01:26 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 18170bb51b27fbcef44d84c783511360151a53d4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18170bb51b27fbcef44d84c783511360151a53d4

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Jan 23 21:01:16 2009 +0000

scons: Use a cache for built files.

Like ccache, but works on all OSes.

---

 scons/gallium.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 65dd0ab..4825e40 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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 = []




More information about the mesa-commit mailing list