aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-01 15:23:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-01 15:23:49 -0800
commit4971364806bea54262ea5169e2af6c6222983964 (patch)
tree9d7837e997a303fe5819fa8f6686967d7d12c5d6 /tools
parent1060c3b01676719061f49fa43f015aa55be93800 (diff)
fix test_poppler and test_iostreamllvm-opts
Diffstat (limited to 'tools')
-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