os: implement StartProcess

Signed-off-by: leongross <leon.gross@9elements.com>
This commit is contained in:
leongross
2024-11-07 09:45:47 +01:00
committed by GitHub
parent c02a8141c7
commit f9f439ad49
10 changed files with 295 additions and 36 deletions
+8
View File
@@ -136,12 +136,20 @@ var libMusl = Library{
"thread/*.c",
"time/*.c",
"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/"