mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
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:
committed by
Ron Evans
parent
2e9c3a1d8d
commit
74fe213b15
+2
-2
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user