alexheretic / aurto

Arch Linux AUR tool for managing an auto-updating local 'aurto' package repository
MIT License
134 stars 9 forks source link

ccache support #74

Open rkunschke opened 2 years ago

rkunschke commented 2 years ago

This feature would be great to minimize compilation times. I tried ti just activate ccache in aurtos makepkg.conf and added ccache to the HoldPKG section in aurtos pacman.conf but just got errors.

alexheretic commented 2 years ago

Like many build features we'd need to figure out how to do it with aurutils --chroot and then review any changes needed here. I haven't used ccache with aur myself.

rkunschke commented 2 years ago

Seems to be possible: https://github.com/AladW/aurutils/issues/334#issuecomment-406531160 Seems like you just have to bind an persistent directory for the cache and activate it in the makepkg.conf. And ccache needs to be installed in the builds chroot.