Skip to content

Commit

Permalink
fix: rm temp file generated during compilation (#738)
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe authored Oct 8, 2023
1 parent 63def27 commit 7c585c5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kclvm/runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,7 @@ pub fn execute(
}));
let result = runner.run(&lib_path, args);

// Clean temp files.
// FIXME(issue #346): On windows, sometimes there will be an error that the file cannot be accessed.
// Therefore, the function of automatically deleting dll files on windows is temporarily turned off.
#[cfg(not(target_os = "windows"))]
remove_file(&lib_path).map_err(|e| e.to_string())?;
#[cfg(not(target_os = "windows"))]
clean_tmp_files(&temp_entry_file, &lib_suffix).map_err(|e| e.to_string())?;
// Wrap runtime error into diagnostic style string.
result.map_err(|err| {
Expand Down

0 comments on commit 7c585c5

Please sign in to comment.