Skip to content

Commit

Permalink
Fix removal of read-only files on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pejovica committed Nov 5, 2019
1 parent e049ee7 commit 75171a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/mx.compiler/mx_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __enter__(self):

def __exit__(self, exc_type, exc_value, traceback):
if exc_type is not None:
shutil.rmtree(self.workspace)
mx.rmtree(self.workspace)
raise

# Try delete the target directory if it existed prior to creating
Expand All @@ -166,7 +166,7 @@ def __exit__(self, exc_type, exc_value, traceback):
# Silently assume another process won the race to create self.target
pass

shutil.rmtree(self.workspace)
mx.rmtree(self.workspace)

def _check_jvmci_version(jdk):
"""
Expand Down

0 comments on commit 75171a9

Please sign in to comment.