Skip to content

Commit

Permalink
Support ccache config
Browse files Browse the repository at this point in the history
  • Loading branch information
ReillyBrogan authored and joebonrichie committed Aug 12, 2023
1 parent b63668d commit b392744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder/eopkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ func NewEopkgManager(notif PidNotifier, root string) *EopkgManager {
// function has to be reusable simply because performing an eopkg upgrade
// or installing deps, prior to building, could clobber the files.
func (e *EopkgManager) CopyAssets() error {
requiredAssets := map[string]string{
assets := map[string]string{
"/etc/resolv.conf": filepath.Join(e.root, "etc/resolv.conf"),
"/etc/eopkg/eopkg.conf": filepath.Join(e.root, "etc/eopkg/eopkg.conf"),
"/etc/ccache/ccache.conf": filepath.Join(e.root, "etc/ccache/ccache.conf"),
}

for key, value := range requiredAssets {
for key, value := range assets {
if !PathExists(key) {
continue
}
Expand Down

0 comments on commit b392744

Please sign in to comment.