summaryrefslogtreecommitdiffstats
path: root/SCons/Taskmaster
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.morrow@viam.com>2024-01-26 01:02:32 (GMT)
committerAndrew Morrow <andrew.morrow@viam.com>2024-02-05 18:14:30 (GMT)
commitf27c3cacbd666751de947858dab8be600764874d (patch)
tree05bb644a739d58be7738c1062851fd2ed1fa42a3 /SCons/Taskmaster
parente48e44739c48821002724c5ea24e007af6bb2cee (diff)
downloadSCons-f27c3cacbd666751de947858dab8be600764874d.zip
SCons-f27c3cacbd666751de947858dab8be600764874d.tar.gz
SCons-f27c3cacbd666751de947858dab8be600764874d.tar.bz2
cache push on any thread
Diffstat (limited to 'SCons/Taskmaster')
-rw-r--r--SCons/Taskmaster/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/SCons/Taskmaster/__init__.py b/SCons/Taskmaster/__init__.py
index d3002fa..33e9118 100644
--- a/SCons/Taskmaster/__init__.py
+++ b/SCons/Taskmaster/__init__.py
@@ -244,9 +244,8 @@ class Task(ABC):
SCons.Warnings.warn(SCons.Warnings.CacheCleanupErrorWarning,
"Failed copying all target files from cache, Error while attempting to remove file %s retrieved from cache: %s" % (t.get_internal_path(), e))
self.targets[0].build()
- else:
- for t in cached_targets:
- t.cached = 1
+ for t in self.targets:
+ t.push_to_cache()
except SystemExit:
exc_value = sys.exc_info()[1]
raise SCons.Errors.ExplicitExit(self.targets[0], exc_value.code)
@@ -299,8 +298,6 @@ class Task(ABC):
for side_effect in t.side_effects:
side_effect.set_state(NODE_NO_STATE)
t.set_state(NODE_EXECUTED)
- if not t.cached:
- t.push_to_cache()
t.built()
t.visited()
if (not print_prepare and