Skip to content

Commit

Permalink
update musl builder to include arch specific process files
Browse files Browse the repository at this point in the history
Signed-off-by: leongross <[email protected]>
  • Loading branch information
leongross committed Oct 30, 2024
1 parent 5878a4b commit 706477a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builder/musl.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,18 @@ var libMusl = Library{
"unistd/*.c",
"process/*.c",
}

if arch == "arm" {
// These files need to be added to the start for some reason.
globs = append([]string{"thread/arm/*.c"}, globs...)
}

if arch != "aarch64" && arch != "mips" {
//aarch64 and mips have no architecture specific code, either they
// are not supported or don't need any?
globs = append([]string{"process/" + arch + "/*.s"}, globs...)
}

var sources []string
seenSources := map[string]struct{}{}
basepath := goenv.Get("TINYGOROOT") + "/lib/musl/src/"
Expand Down

0 comments on commit 706477a

Please sign in to comment.