[llvm-commits] [hlvm] r38080 - /hlvm/trunk/scons/configure.py
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:59:38 PDT 2007
Author: reid
Date: Sat Jul 7 18:59:38 2007
New Revision: 38080
URL: http://llvm.org/viewvc/llvm-project?rev=38080&view=rev
Log:
Remove a debug print statement and use a better utility for finding programs.
Modified:
hlvm/trunk/scons/configure.py
Modified: hlvm/trunk/scons/configure.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/scons/configure.py?rev=38080&r1=38079&r2=38080&view=diff
==============================================================================
--- hlvm/trunk/scons/configure.py (original)
+++ hlvm/trunk/scons/configure.py Sat Jul 7 18:59:38 2007
@@ -7,16 +7,11 @@
from os import environ as environ
def CheckProgram(context,progname,varname,moredirs=[]):
- ret = 0
context.Message("Checking for " + progname + "...")
- PATH = environ['PATH']
- dirs = PATH.split(':') + moredirs
- for dir in dirs:
- fname = pjoin(dir,progname)
- if exists(fname) and isfile(fname):
- context.env[varname] = fname
- ret = 1
- break;
+ fname = context.env.WhereIs(progname,environ['PATH'])
+ ret = fname != None
+ if ret:
+ context.env[varname] = fname
context.Result(ret)
return ret
@@ -82,7 +77,6 @@
else:
count += 1
objects.append(obj)
- print "objects(",len(objects),"=",objects
if count != len(objs):
continue
for incdir in ['include', 'inc', 'incl']:
More information about the llvm-commits
mailing list