-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build cache and drop build cache support for legacy XML builds
Signed-off-by: Gavin Zhao <[email protected]>
- Loading branch information
1 parent
fd62ab2
commit 6e4c203
Showing
4 changed files
with
70 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package builder | ||
|
||
import ( | ||
"path" | ||
) | ||
|
||
var ( | ||
Ccache = Cache{ | ||
Name: "ccache", | ||
CacheDir: path.Join(BuildUserHome, ".ccache"), | ||
} | ||
|
||
Sccache = Cache{ | ||
Name: "sccache", | ||
CacheDir: path.Join(BuildUserHome, ".cache", "sccache"), | ||
} | ||
|
||
Caches = []Cache{Ccache, Sccache} | ||
) | ||
|
||
type Cache struct { | ||
Name string | ||
CacheDir string // CacheDir is the chroot-internal cache directory. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters