We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde93df commit 6d84b7aCopy full SHA for 6d84b7a
SConstruct
@@ -47,7 +47,13 @@ if unknown:
47
48
scons_cache_path = os.environ.get("SCONS_CACHE")
49
if scons_cache_path is not None:
50
- CacheDir(scons_cache_path)
+ # Make the cache path unique for each platform and architecture
51
+ platform_arch = env["PLATFORM"] + "." + env["arch"]
52
+ platform_cache_path = os.path.join(scons_cache_path, platform_arch)
53
+ if not os.path.exists(platform_cache_path):
54
+ os.makedirs(platform_cache_path)
55
+
56
+ CacheDir(platform_cache_path)
57
Decider("MD5")
58
59
cpp_tool.generate(env)
0 commit comments