aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 38089122..6367b41a 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -261,7 +261,7 @@ class Building:
@staticmethod
def link(files, target):
output = Popen([LLVM_LINK] + files + ['-o', target], stdout=PIPE, stderr=STDOUT).communicate()[0]
- assert output is None or 'Could not open input file' not in output, 'Linking error: ' + output
+ assert not os.path.exists(target) or output is None or 'Could not open input file' not in output, 'Linking error: ' + output
# Emscripten optimizations that we run on the .ll file
@staticmethod