Author: gclayton
Date: Fri Apr 22 17:15:59 2016
New Revision: 267235

URL: http://llvm.org/viewvc/llvm-project?rev=267235&view=rev
Log:
Fix a build-llvm.py crasher when we can't find cmake. Now it exits with a valid 
error that explains what went wrong.


Modified:
    lldb/trunk/scripts/Xcode/build-llvm.py

Modified: lldb/trunk/scripts/Xcode/build-llvm.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Xcode/build-llvm.py?rev=267235&r1=267234&r2=267235&view=diff
==============================================================================
--- lldb/trunk/scripts/Xcode/build-llvm.py (original)
+++ lldb/trunk/scripts/Xcode/build-llvm.py Fri Apr 22 17:15:59 2016
@@ -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"],


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to