Commit 1ebb272f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Added missing temporary files clean-up



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 99f0b230
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -343,6 +343,10 @@ def main(argv=None):
        sys.argv.append(base_name+'.o')
        fileType = None
        filename = None
        if not keep_bit_code_files:
            # remove these temp files
            os.remove(ll_file_name)
            os.remove(bc_file_name)

    if fileType == 'qsharp':
        # Assume that `qsc` is a valid exe command
@@ -417,7 +421,6 @@ def main(argv=None):
            else:
                commands += baseLibs + sys.argv[1:]


            if verbose:
                print('[qcor-exec]: ', ' '.join([c for c in commands]))