icecream/ccache support...

This commit is contained in:
S.Çağlar Onur
2005-10-24 03:01:57 +00:00
parent fb799a074f
commit d303019f4c
+11 -2
View File
@@ -177,8 +177,17 @@ class Builder:
"SRC_RELEASE": self.spec.source.release "SRC_RELEASE": self.spec.source.release
} }
os.environ.update(evn) os.environ.update(evn)
# Add ccache directory for support Compiler Cache :)
os.environ["PATH"] = "/usr/lib/ccache/bin/:" + os.environ["PATH"] # First check icecream, if not found use ccache, no need to use both
# together (according to kde-wiki it cause performance loss)
if os.path.exists("/opt/icecream/bin/gcc"):
# Add icecream directory for support distributed compiling :)
os.environ["PATH"] = "/opt/icecream/bin/:" + os.environ["PATH"]
ctx.ui.info(_("IceCream detected. Make sure your daemon is up and running...")
elif os.path.exists("/usr/lib/ccache/bin/gcc"):
# Add ccache directory for support Compiler Cache :)
os.environ["PATH"] = "/usr/lib/ccache/bin/:" + os.environ["PATH"]
ctx.ui.info(_("CCache detected...")
def fetch_source_archive(self): def fetch_source_archive(self):
ctx.ui.info(_("Fetching source from: %s") % self.spec.source.archiveUri) ctx.ui.info(_("Fetching source from: %s") % self.spec.source.archiveUri)