target_workdir = self.codegen_workdir(target)
synthetic_name = target.id
sources_rel_path = os.path.relpath(target_workdir, get_buildroot())
spec_path = "{0}{1}".format(type(self).__name__, sources_rel_path)
synthetic_address = SyntheticAddress(spec_path, synthetic_name)
// TODO(gm): sources_generated_by_target() shouldn"t be necessary for the isolated codegen
// strategy, once that exists.
raw_generated_sources = self.sources_generated_by_target(target)
After Change
with self.invalidated(targets,
invalidate_dependents=True,
fingerprint_strategy=self.get_fingerprint_strategy()) as invalidation_check:
invalid_targets = OrderedSet()
for vts in invalidation_check.invalid_vts:
invalid_targets.update(vts.targets)
self.execute_codegen(invalid_targets)
invalid_vts_by_target = dict([(vt.target, vt) for vt in invalidation_check.invalid_vts])
vts_artifactfiles_pairs = []