diff --git a/SConstruct b/SConstruct index 48dd044709..f5d5ec6fb8 100644 --- a/SConstruct +++ b/SConstruct @@ -178,7 +178,8 @@ Export('envCython', 'np_version') Export('env', 'arch') # Setup cache dir -cache_dir = '/data/scons_cache' if arch == "larch64" else '/tmp/scons_cache' +default_cache_dir = '/data/scons_cache' if arch == "larch64" else '/tmp/scons_cache' +cache_dir = ARGUMENTS.get('cache_dir', default_cache_dir) CacheDir(cache_dir) Clean(["."], cache_dir)