Skip to content

Commit 706477a

Browse files
committed
update musl builder to include arch specific process files
Signed-off-by: leongross <[email protected]>
1 parent 5878a4b commit 706477a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

builder/musl.go

+7
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,18 @@ var libMusl = Library{
138138
"unistd/*.c",
139139
"process/*.c",
140140
}
141+
141142
if arch == "arm" {
142143
// These files need to be added to the start for some reason.
143144
globs = append([]string{"thread/arm/*.c"}, globs...)
144145
}
145146

147+
if arch != "aarch64" && arch != "mips" {
148+
//aarch64 and mips have no architecture specific code, either they
149+
// are not supported or don't need any?
150+
globs = append([]string{"process/" + arch + "/*.s"}, globs...)
151+
}
152+
146153
var sources []string
147154
seenSources := map[string]struct{}{}
148155
basepath := goenv.Get("TINYGOROOT") + "/lib/musl/src/"

0 commit comments

Comments
 (0)