builder: don't use precompiled libraries

We used these libraries in the past, but stopped doing so a while ago.
This is a small cleanup to remove support for these entirely.
This commit is contained in:
Ayke van Laethem
2025-03-19 08:14:52 +01:00
committed by Ron Evans
parent 91e20a53e0
commit 8486e07377
2 changed files with 8 additions and 22 deletions
+1 -6
View File
@@ -48,13 +48,8 @@ type Library struct {
// target config. In other words, pass this libc if the library needs a libc to
// compile.
func (l *Library) load(config *compileopts.Config, tmpdir string, libc *compileJob) (job *compileJob, abortLock func(), err error) {
outdir, precompiled := config.LibcPath(l.name)
outdir := config.LibcPath(l.name)
archiveFilePath := filepath.Join(outdir, "lib.a")
if precompiled {
// Found a precompiled library for this OS/architecture. Return the path
// directly.
return dummyCompileJob(archiveFilePath), func() {}, nil
}
// Create a lock on the output (if supported).
// This is a bit messy, but avoids a deadlock because it is ordered consistently with other library loads within a build.