Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-xanadu committed Nov 18, 2024
1 parent b673b40 commit bdaed9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/catalyst/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ def run_from_ir(self, ir: str, module_name: str, workspace: Directory):
output = LinkerDriver.run(output_object_name, options=self.options)
output_object_name = str(pathlib.Path(output).absolute())

# Clean up temporary files
if os.path.exists(tmp_infile_name):
os.remove(tmp_infile_name)
if os.path.exists(output_ir_name):
os.remove(output_ir_name)

Expand Down

0 comments on commit bdaed9e

Please sign in to comment.