Fix a build-llvm.py crasher when we can't find cmake. Now it exits with a valid error that explains what went wrong.

llvm-svn: 267235
This commit is contained in:
Greg Clayton 2016-04-22 22:15:59 +00:00
parent 891f0f176c
commit b6bd4618eb
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ def find_cmake ():
return cmake_binary
# We couldn't find cmake. Tell the user what to do.
raise(
raise Exception(
"could not find cmake in PATH ({}) or in any of these locations ({}), "
"please install cmake or add a link to it in one of those locations".format(
os.environ["PATH"],