#distro = ipfire3
# Use ccache in order to build rebuilds in less time.
+# See also the [ccache] section.
#use_ccache = true
# Use icecream in order to speed up builds.
# Create loop devices in build environment.
#use_loop_devices = true
+
+[ccache]
+# Turn on compression to get more files into the cache.
+#compress = true
"buildroot_tmpfs" : self.config.get_bool("builder", "use_tmpfs", False),
}
+ # Get ccache settings.
+ if self.settings.get("enable_ccache", False):
+ self.settings.update({
+ "ccache_compress" : self.config.get_bool("ccache", "compress", True),
+ })
+
# Try to get the configured host key. If it is available,
# we will automatically sign all packages with it.
if self.keyring.get_host_key(secret=True):
# Inherit environment from distro
env.update(self.pakfire.distro.environ)
+ # ccache environment settings
+ if self.settings.get("enable_ccache", False):
+ compress = self.settings.get("ccache_compress", False)
+ if compress:
+ env["CCACHE_COMPRESS"] = "1"
+
+ # Let ccache create its temporary files in /tmp.
+ env["CCACHE_TEMPDIR"] = "/tmp"
+
# Icecream environment settings
if self.settings.get("enable_icecream", False):
# Set the toolchain path