From 230e97724d975ca953fbdc6dc63d6190776dd281 Mon Sep 17 00:00:00 2001 From: leongross Date: Wed, 30 Oct 2024 09:17:23 +0100 Subject: [PATCH] update musl builder to include arch specific process files Signed-off-by: leongross --- builder/musl.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/builder/musl.go b/builder/musl.go index 4768dbf92b..a6699ad8d1 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -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/"