aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-01-13 12:19:09 +0100
committerRon Evans <[email protected]>2020-01-16 08:11:04 +0100
commitc698e99880636d5d87bfca4ffc4fac054e00829c (patch)
tree147d1bf1eede1cb3f083400821a21a95d51b9d03 /builder
parent4d5dafd360a5c53bc883e8e70d917b67b79f95fb (diff)
downloadtinygo-c698e99880636d5d87bfca4ffc4fac054e00829c.tar.gz
tinygo-c698e99880636d5d87bfca4ffc4fac054e00829c.zip
gameboy-advance: include compiler-rt in build
This avoids errors like the following: ld.lld-9: error: undefined symbol: __umodsi3 ld.lld-9: error: undefined symbol: __aeabi_uidivmod
Diffstat (limited to 'builder')
-rw-r--r--builder/builtins.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/builtins.go b/builder/builtins.go
index 8bd243e7a..9a1eb1480 100644
--- a/builder/builtins.go
+++ b/builder/builtins.go
@@ -158,7 +158,7 @@ var aeabiBuiltins = []string{
func builtinFiles(target string) []string {
builtins := append([]string{}, genericBuiltins...) // copy genericBuiltins
- if strings.HasPrefix(target, "arm") {
+ if strings.HasPrefix(target, "arm") || strings.HasPrefix(target, "thumb") {
builtins = append(builtins, aeabiBuiltins...)
}
return builtins