diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-28 13:32:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-28 13:32:39 -0700 |
commit | 502fdced559a3d0d2ce8f46f98485bddb1dd611f (patch) | |
tree | 957f6a681c8311b51a47f6d2577612e37a561f93 /tools | |
parent | 7b963a2a7060eeacd624b73c9645455642f3ec0d (diff) |
error detection in Building.link
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 2 |
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 |