[llvm-commits] [hlvm] r38284 - /hlvm/trunk/build/configure.py

Reid Spencer reid at x10sys.com
Sat Jul 7 17:01:57 PDT 2007


Author: reid
Date: Sat Jul  7 19:01:56 2007
New Revision: 38284

URL: http://llvm.org/viewvc/llvm-project?rev=38284&view=rev
Log:
Check variables for None before using them!
Patch contributed by Mark Rowe.

Modified:
    hlvm/trunk/build/configure.py

Modified: hlvm/trunk/build/configure.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/configure.py?rev=38284&r1=38283&r2=38284&view=diff

==============================================================================
--- hlvm/trunk/build/configure.py (original)
+++ hlvm/trunk/build/configure.py Sat Jul  7 19:01:56 2007
@@ -182,7 +182,7 @@
 
 def CheckProgram(ctxt,progname,varname,moredirs=[],critical=1):
   ctxt.Message("Checking for Program " + progname + "...")
-  if exists(ctxt.env[varname]):
+  if ctxt.env[varname] is not None and exists(ctxt.env[varname]):
     ret = 1
   else:
     paths = sjoin(moredirs,':') + ':' + ctxt.env['ENV']['PATH'] 





More information about the llvm-commits mailing list