enhance setup error messages
This commit is contained in:
parent
0cc2e516ac
commit
acd6ab685b
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ def get_llvm_version():
|
|||
p = Popen(args, stdout=PIPE, stderr=PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
if stderr:
|
||||
raise Exception("%r stderr is:\n%s" % (args, stderr.decode()))
|
||||
sys.exit("Error: %r stderr is:\n%s" % (args, stderr.decode()))
|
||||
out = stdout.decode().strip()
|
||||
pat = re.compile(r'llvm\s+version\s+(\d+\.\d+\S*)', re.I)
|
||||
m = pat.search(out)
|
||||
|
|
@ -111,7 +111,7 @@ def main():
|
|||
print(libdir)
|
||||
|
||||
else:
|
||||
sys.exit('Unrecognized llvm-config option %r' % option)
|
||||
sys.exit('Error: Unrecognized llvm-config option %r' % option)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue