From e834d7887143fc8da542d3d29907e8db7a5b9bb2 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Thu, 15 Jul 2021 19:14:49 +0100 Subject: [PATCH] Fix undefined symbols error Currently TinyGo does not process SFiles (assembly files), which are needed by math/big. Add math_big_pure_go to the build tags to unbreak it. --- compileopts/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compileopts/config.go b/compileopts/config.go index a60f778e..36782506 100644 --- a/compileopts/config.go +++ b/compileopts/config.go @@ -55,7 +55,7 @@ func (c *Config) GOARCH() string { // BuildTags returns the complete list of build tags used during this build. func (c *Config) BuildTags() []string { - tags := append(c.Target.BuildTags, []string{"tinygo", "gc." + c.GC(), "scheduler." + c.Scheduler(), "serial." + c.Serial()}...) + tags := append(c.Target.BuildTags, []string{"tinygo", "math_big_pure_go", "gc." + c.GC(), "scheduler." + c.Scheduler(), "serial." + c.Serial()}...) for i := 1; i <= c.GoMinorVersion; i++ { tags = append(tags, fmt.Sprintf("go1.%d", i)) }