builder: remove unused cacheKey parameter

This key was intended as some sort of cache key (as the name indicates)
but that never happened. Let's remove it to avoid clutter. The cacheLoad
and cacheStore functions are only used for C libraries (libc,
compiler-rt) so their caching behavior is a bit different from other
things worth caching.
This commit is contained in:
Ayke van Laethem
2021-02-10 23:23:02 +01:00
committed by Ron Evans
parent 2e9c3a1d8d
commit 74fe213b15
2 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ func (l *Library) load(target, tmpdir string) (path string, job *compileJob, err
outfile := l.name + "-" + target + ".a"
// Try to fetch this library from the cache.
if path, err := cacheLoad(outfile, commands["clang"][0], l.sourcePaths(target)); path != "" || err != nil {
if path, err := cacheLoad(outfile, l.sourcePaths(target)); path != "" || err != nil {
// Cache hit.
return path, nil, err
}
@@ -112,7 +112,7 @@ func (l *Library) load(target, tmpdir string) (path string, job *compileJob, err
return err
}
// Store this archive in the cache.
_, err = cacheStore(arpath, outfile, commands["clang"][0], l.sourcePaths(target))
_, err = cacheStore(arpath, outfile, l.sourcePaths(target))
return err
},
}