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 8857d20Copy full SHA for 8857d20
SConstruct
@@ -47,7 +47,14 @@ 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
57
+ CacheDir(platform_cache_path)
58
Decider("MD5")
59
60
cpp_tool.generate(env)
0 commit comments