aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/builtins.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-10-09 14:48:45 +0200
committerRon Evans <[email protected]>2022-10-16 12:03:03 +0200
commit9de757205f21900c037bc9276d036cc2676a2bdb (patch)
treea18f47f1b9f2181d93408ec73ced83f73b68fed7 /builder/builtins.go
parentf866d5cc38319b1abcfd2e7302b2b8ed7d89cdad (diff)
downloadtinygo-9de757205f21900c037bc9276d036cc2676a2bdb.tar.gz
tinygo-9de757205f21900c037bc9276d036cc2676a2bdb.zip
linux: include musl 'getpagesize' function in release
I wonder why nobody else noticed this bug? In any case, this patch fixes it.
Diffstat (limited to 'builder/builtins.go')
-rw-r--r--builder/builtins.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/builder/builtins.go b/builder/builtins.go
index 121398fac..f35816148 100644
--- a/builder/builtins.go
+++ b/builder/builtins.go
@@ -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
},
}