[SERVER-11053] Support use of SCons CacheDir feature to eliminate long and complex variant directory names Created: 06/Oct/13  Updated: 11/Jul/16  Resolved: 04/Nov/13

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: scons
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

We currently turn build options into components of a very long variant directory so that re-building with previously used build options is fast, since otherwise we would be stepping on the generated object files at each build and there would be no chance for re-use.

The downside is that it is very hard to know, given particular compiler options, what the name of a given target might be.

However, SCons offers a target caching facility that can intelligently cache object files and avoid re-building while overwriting into the variant dir.

By using the CacheDir facility, we would get the benefit of fast re-builds, but lose the complexity of the long variant directory names.

This should be a developer only option, and not used for production builds, and should be limited to only working with newer versions of SCons where the CacheDir feature us likely to work reasonably well.



 Comments   
Comment by auto [ 07/Oct/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-11053 Support use of CacheDir rather than Brobdingnagian variant directory names
Branch: master
https://github.com/mongodb/mongo/commit/ac2bd108337a6de9765ac396c6e5911ca5bdff7d

Generated at Thu Feb 08 03:24:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.