build: check runtime link file

This commit is contained in:
visualfc
2024-06-07 20:33:31 +08:00
parent 92aee9b69c
commit 878b395e20
4 changed files with 33 additions and 10 deletions

View File

@@ -294,7 +294,9 @@ func linkMainPkg(pkg *packages.Package, pkgs []*aPackage, runtimeFiles []string,
dirty := false
if needRuntime && runtimeFiles != nil {
args = append(args, runtimeFiles...)
for _, file := range runtimeFiles {
args = appendLinkFiles(args, file)
}
} else {
dirty = true
fn := aPkg.LPkg.FuncOf(cl.RuntimeInit)