test: fix compile test

test: add asm test

test: add libc.go test

test: add DownloadAndExtractLibInternalDir test

test: fix checkDownload test

test: fix asm test

fix: check isCompile

fix: remove debug

fix: remove debug
This commit is contained in:
Haolan
2025-09-02 09:45:42 +08:00
parent 1d3ecb287a
commit f875347ad9
6 changed files with 355 additions and 36 deletions

View File

@@ -28,9 +28,9 @@ type CompileGroup struct {
}
func (g CompileGroup) IsCompiled(outputDir string) bool {
archive := filepath.Join(outputDir, g.OutputFileName)
archive := filepath.Join(outputDir, filepath.Base(g.OutputFileName))
_, err := os.Stat(archive)
return !os.IsNotExist(err)
return err == nil
}
func (g CompileGroup) Compile(
@@ -57,7 +57,7 @@ func (g CompileGroup) Compile(
compiler.Verbose = true
archive := filepath.Join(outputDir, g.OutputFileName)
archive := filepath.Join(outputDir, filepath.Base(g.OutputFileName))
fmt.Fprintf(os.Stderr, "Start to compile group %s to %s...\n", g.OutputFileName, archive)
for _, file := range g.Files {