"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),
- })
-
# Add settings from keyword arguments
self.settings.update(kwargs)
# Inherit environment from distro
env.update(self.pakfire.distro.environ)
- # ccache environment settings
- if self.builder.settings.get("enable_ccache", False):
- compress = self.builder.settings.get("ccache_compress", False)
- if compress:
- env["CCACHE_COMPRESS"] = "1"
-
- # Let ccache create its temporary files in /tmp.
- env["CCACHE_TEMPDIR"] = "/tmp"
-
# Fake UTS_MACHINE, when we cannot use the personality syscall and
# if the host architecture is not equal to the target architecture.
if not _pakfire.native_arch() == self.pakfire.arch: