aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d1fbf878..366834ef 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -426,6 +426,7 @@ class Building:
@staticmethod
def link(files, target):
+ try_delete(target)
output = Popen([LLVM_LINK] + files + ['-o', target], stdout=PIPE).communicate()[0]
assert os.path.exists(target) and (output is None or 'Could not open input file' not in output), 'Linking error: ' + output