scons: Put the configuration info in the build directory too.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 25 Dec 2009 17:39:47 +0000 (17:39 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 26 Dec 2009 01:14:08 +0000 (01:14 +0000)
It fixes cached configuration results from one platform being erroneously
used in other platforms.

scons/gallium.py

index b7a14af4b1b6d58608833bc5813dc133431af5a0..1f9cd3d9203485ea45d6e82ee584397e2839281f 100644 (file)
@@ -243,6 +243,8 @@ def generate(env):
     env['build'] = build_dir
     env.SConsignFile(os.path.join(build_dir, '.sconsign'))
     env.CacheDir('build/cache')
+    env['CONFIGUREDIR'] = os.path.join(build_dir, 'conf')
+    env['CONFIGURELOG'] = os.path.join(os.path.abspath(build_dir), 'config.log')
 
     # Parallel build
     if env.GetOption('num_jobs') <= 1: