making emerge faster
Wolfgang Rohdewald
wolfgang at rohdewald.de
Fri Jan 14 05:17:14 CET 2011
caching getGCCTarget() really makes some operations
much faster. And emerge prints much less debug
messages.
I suppose it must be called again as long
as Popen fails - but when it succeeded, can
gcc change its opinion later on?
def getGCCTarget():
# TODO: Cache this!
try:
result = subprocess.Popen("gcc -dumpmachine",
stdout=subprocess.PIPE).communicate()[0]
utils.debug("GCC Target Processor:%s" % result, 1 )
return result.strip()
except OSError:
#if no mingw is installed return mingw-w32 it is part of
base
return "i686-w64-mingw32"
--
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20110114/95591659/attachment.htm
More information about the Kde-windows
mailing list