File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1296,13 +1296,15 @@ def test_clear(self) -> None:
1296
1296
n .includes = 'testincludes'
1297
1297
n .Tag ('found_includes' , {'testkey' :'testvalue' })
1298
1298
n .implicit = 'testimplicit'
1299
+ n .cached = 1
1299
1300
1300
1301
x = MyExecutor ()
1301
1302
n .set_executor (x )
1302
1303
1303
1304
n .clear ()
1304
1305
1305
1306
assert n .includes is None , n .includes
1307
+ assert n .cached == 0 , n .cached
1306
1308
assert x .cleaned_up
1307
1309
1308
1310
def test_get_subst_proxy (self ) -> None :
Original file line number Diff line number Diff line change @@ -588,6 +588,7 @@ def __init__(self) -> None:
588
588
self .pseudo = False
589
589
self .noclean = 0
590
590
self .nocache = 0
591
+ self .cached = 0 # is this node pulled from cache?
591
592
self .always_build = None
592
593
self .includes = None
593
594
self .attributes = self .Attrs () # Generic place to stick information about the Node.
@@ -863,6 +864,7 @@ def clear(self) -> None:
863
864
delattr (self , attr )
864
865
except AttributeError :
865
866
pass
867
+ self .cached = 0
866
868
self .includes = None
867
869
868
870
def clear_memoized_values (self ) -> None :
Original file line number Diff line number Diff line change @@ -246,6 +246,9 @@ def execute(self):
246
246
self .targets [0 ].build ()
247
247
for t in self .targets :
248
248
t .push_to_cache ()
249
+ else :
250
+ for t in cached_targets :
251
+ t .cached = 1
249
252
except SystemExit :
250
253
exc_value = sys .exc_info ()[1 ]
251
254
raise SCons .Errors .ExplicitExit (self .targets [0 ], exc_value .code )
You can’t perform that action at this time.
0 commit comments