changeset e40fbbe1ed4f in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=e40fbbe1ed4f description: scons: add a parameter to configure SCons' build cache
diffstat: SConstruct | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diffs (24 lines): diff -r 0d9de7394e38 -r e40fbbe1ed4f SConstruct --- a/SConstruct Mon Nov 08 13:58:24 2010 -0600 +++ b/SConstruct Mon Nov 08 13:58:24 2010 -0600 @@ -312,6 +312,7 @@ ('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])), ('BATCH', 'Use batch pool for build and tests', False), ('BATCH_CMD', 'Batch pool submission command name', 'qdo'), + ('M5_BUILD_CACHE', 'Cache built objects in this directory', False), ('EXTRAS', 'Add Extra directories to the compilation', '', PathListAllExist, PathListMakeAbsolute), ) @@ -549,6 +550,12 @@ main.Append(CPPPATH=py_includes) main.Append(LIBPATH=py_lib_path) +# Cache build files in the supplied directory. +if main['M5_BUILD_CACHE']: + print 'Using build cache located at', main['M5_BUILD_CACHE'] + CacheDir(main['M5_BUILD_CACHE']) + + # verify that this stuff works if not conf.CheckHeader('Python.h', '<>'): print "Error: can't find Python.h header in", py_includes _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev