build: fix link runtime

This commit is contained in:
visualfc
2024-07-02 18:39:07 +08:00
parent de07abee98
commit a9f7cdb630

View File

@@ -356,7 +356,7 @@ func linkMainPkg(pkg *packages.Package, pkgs []*aPackage, llFiles []string, conf
}
dirty := false
if needRuntime && llFiles != nil {
if needRuntime {
for _, file := range llFiles {
args = appendLinkFiles(args, file)
}