diff options
author | Sam Kleinman <samk@10gen.com> | 2016-07-28 15:09:00 -0400 |
---|---|---|
committer | Sam Kleinman <samk@10gen.com> | 2016-08-01 20:10:00 -0400 |
commit | 72bbaf4f5c3ab1c76dd9b67ce83be46c44092a80 (patch) | |
tree | 4c2977ecf120cdbeed215fa8f418ed5b27fb63be /src/third_party | |
parent | 3666300beabc81feda5ce58e733527068c33dc56 (diff) | |
download | mongo-72bbaf4f5c3ab1c76dd9b67ce83be46c44092a80.tar.gz |
SERVER-25171: add scons cache support and enable on relevant non-push variants
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py b/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py index 05199d93144..a5b85a01fb8 100644 --- a/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py +++ b/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py @@ -52,9 +52,12 @@ def CacheRetrieveFunc(target, source, env): cd.CacheDebug('CacheRetrieve(%s): retrieving from %s\n', t, cachefile) if SCons.Action.execute_actions: if fs.islink(cachefile): - fs.symlink(fs.readlink(cachefile), t.get_internal_path()) + realpath = fs.readlink(cachefile) + fs.symlink(realpath, t.get_internal_path()) + os.utime(realpath, None) else: env.copy_from_cache(cachefile, t.get_internal_path()) + os.utime(cachefile, None) st = fs.stat(cachefile) fs.chmod(t.get_internal_path(), stat.S_IMODE(st[stat.ST_MODE]) | stat.S_IWRITE) return 0 |