Skip to content

Commit

Permalink
Only generate SIOBlocks if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 5, 2024
1 parent 17e018f commit 672e448
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/podio_gen/cpp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,11 @@ def _write_links_registration_file(self, links):
"DatamodelLinks.cc",
self._eval_template("DatamodelLinks.cc.jinja2", link_data),
)
self._write_file(
"DatamodelLinkSIOBlock.cc",
self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data),
)
if "SIO" in self.io_handlers:
self._write_file(
"DatamodelLinkSIOBlock.cc",
self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data),
)

def _write_edm_def_file(self):
"""Write the edm definition to a compile time string"""
Expand Down

0 comments on commit 672e448

Please sign in to comment.