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
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows