aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRhody Lugo2017-11-25 21:47:54 -0400
committerRhody Lugo2017-11-25 22:15:22 -0400
commit428b6a308e8a8792542bbb3284218399f99c33fa (patch)
tree6083c49ee6d4d35002fff2a9873082ab2d18ca8c /SConstruct
parent2f3c4c94dac8fc88db9a23fa07a070ed33951dc7 (diff)
downloadgodot-428b6a308e8a8792542bbb3284218399f99c33fa.tar.gz
godot-428b6a308e8a8792542bbb3284218399f99c33fa.tar.zst
godot-428b6a308e8a8792542bbb3284218399f99c33fa.zip
add support for scons cache and enable it for appveyor
Diffstat (limited to '')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 61edb1233..b5885f896 100644
--- a/SConstruct
+++ b/SConstruct
@@ -434,6 +434,11 @@ if selected_platform in platform_list:
if (True): # FIXME: detect GLES3
env.Append( BUILDERS = { 'GLES3_GLSL' : env.Builder(action = methods.build_gles3_headers, suffix = 'glsl.gen.h',src_suffix = '.glsl') } )
+ scons_cache_path = os.environ.get("SCONS_CACHE")
+ if scons_cache_path != None:
+ CacheDir(scons_cache_path)
+ print("Scons cache enabled... (path: '" + scons_cache_path + "')")
+
Export('env')
# build subdirs, the build order is dependent on link order.