Skip to content

Commit 04f078b

Browse files
committed
1 parent c30031b commit 04f078b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: legacy/builder/phases/linker.go

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ func link(ctx *types.Context, objectFiles paths.PathList, coreDotARelPath *paths
7878
properties := buildProperties.Clone()
7979
archives := paths.NewPathList()
8080
for _, object := range objectFiles {
81+
if object.HasSuffix(".a") {
82+
archives.Add(object)
83+
continue
84+
}
8185
archive := object.Parent().Join("objs.a")
8286
if !archives.Contains(archive) {
8387
archives.Add(archive)

0 commit comments

Comments
 (0)