linux: include musl 'getpagesize' function in release

I wonder why nobody else noticed this bug? In any case, this patch fixes it.
This commit is contained in:
Ayke van Laethem
2022-10-09 14:48:45 +02:00
committed by Ron Evans
parent f866d5cc38
commit 9de757205f
6 changed files with 24 additions and 13 deletions
+2 -2
View File
@@ -181,11 +181,11 @@ var CompilerRT = Library{
// Development build.
return filepath.Join(goenv.Get("TINYGOROOT"), "lib/compiler-rt-builtins")
},
librarySources: func(target string) []string {
librarySources: func(target string) ([]string, error) {
builtins := append([]string{}, genericBuiltins...) // copy genericBuiltins
if strings.HasPrefix(target, "arm") || strings.HasPrefix(target, "thumb") {
builtins = append(builtins, aeabiBuiltins...)
}
return builtins
return builtins, nil
},
}