scons: Place the .sconsign file on the builddir too.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 27 Feb 2008 11:13:16 +0000 (20:13 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 27 Feb 2008 11:13:16 +0000 (20:13 +0900)
To avoid issues with different scons versions building the same source file

common.py

index e2650d6c8e2e225d2428b7fbb211bd0043fbdac8..b65ed7eaaa760c815cee315eb4d3dfeb2760d2b8 100644 (file)
--- a/common.py
+++ b/common.py
@@ -109,5 +109,8 @@ def make_build_dir(env):
        if env['debug']:
                build_subdir += "-debug"
        build_dir = os.path.join(build_topdir, build_subdir)
+       # Place the .sconsign file on the builddir too, to avoid issues with different scons
+       # versions building the same source file
+       env.SConsignFile(os.path.join(build_dir, '.sconsign'))
        return build_dir