forked from Mirror/pmbootstrap
ccache: Fix for distcc cross-compiling / various improvements (#1026)
* ccache: Fix for distcc cross-compiling / various improvements * Make ccache work when cross-compiling with distcc (fix #716) * Allow to configure the ccache size in "pmbootstrap init" * Moved ccache stats code from pmb/build/other.py to pmb/helpers/frontend.py * Grouped job count, ccache size and timestamp based rebuilds together to "build options" and allow to skip them * Sorted config options that had to be modified anyway alphabetically * Improve comment in arch-bin-masquerade APKBUILD
This commit is contained in:
parent
071ec4c214
commit
567ac64e26
13 changed files with 213 additions and 96 deletions
|
@ -261,7 +261,15 @@ def shutdown(args):
|
|||
|
||||
|
||||
def stats(args):
|
||||
pmb.build.ccache_stats(args, args.arch)
|
||||
# Chroot suffix
|
||||
suffix = "native"
|
||||
if args.arch != args.arch_native:
|
||||
suffix = "buildroot_" + args.arch
|
||||
|
||||
# Install ccache and display stats
|
||||
pmb.chroot.apk.install(args, ["ccache"], suffix)
|
||||
logging.info("(" + suffix + ") % ccache -s")
|
||||
pmb.chroot.user(args, ["ccache", "-s"], suffix, log=False)
|
||||
|
||||
|
||||
def log(args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue