Skip to content

Commit

Permalink
builder: add some more musl support
Browse files Browse the repository at this point in the history
This should add just enough for the Boehm GC, which uses printf in some
cases and therefore needs somewhat more complete libc support.
  • Loading branch information
aykevl committed Aug 5, 2024
1 parent 4a88665 commit f10b392
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 @@ -113,23 +113,30 @@ var Musl = Library{
librarySources: func(target string) ([]string, error) {
arch := compileopts.MuslArchitecture(target)
globs := []string{
"ctype/*.c",
"env/*.c",
"errno/*.c",
"exit/*.c",
"fcntl/*.c",
"internal/defsysinfo.c",
"internal/intscan.c",
"internal/libc.c",
"internal/shgetc.c",
"internal/syscall_ret.c",
"internal/vdso.c",
"legacy/*.c",
"locale/*.c",
"linux/*.c",
"locale/*.c",
"malloc/*.c",
"malloc/mallocng/*.c",
"mman/*.c",
"math/*.c",
"multibyte/*.c",
"sched/*.c",
"signal/*.c",
"stdio/*.c",
"stdlib/*.c",
"string/*.c",
"thread/" + arch + "/*.s",
"thread/*.c",
Expand Down

0 comments on commit f10b392

Please sign in to comment.