aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-10-19 23:00:54 -0700
committerRon Evans <[email protected]>2024-01-31 17:51:55 +0100
commit2867da164dc6352ce1165d5a9e87103a4d8b74aa (patch)
tree52bb6639d31e7965ae0c0cb6c91b24f27288cc4d /builder
parent7b8ae2d6b62bf2bc76b8529147d24137df6ff8ec (diff)
downloadtinygo-2867da164dc6352ce1165d5a9e87103a4d8b74aa.tar.gz
tinygo-2867da164dc6352ce1165d5a9e87103a4d8b74aa.zip
Allow larger systems to have a larger max stack alloc
Fixes #3331
Diffstat (limited to 'builder')
-rw-r--r--builder/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/builder/build.go b/builder/build.go
index 5fc6f44ee..b9965c1e8 100644
--- a/builder/build.go
+++ b/builder/build.go
@@ -197,6 +197,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
Scheduler: config.Scheduler(),
AutomaticStackSize: config.AutomaticStackSize(),
DefaultStackSize: config.StackSize(),
+ MaxStackAlloc: config.MaxStackAlloc(),
NeedsStackObjects: config.NeedsStackObjects(),
Debug: !config.Options.SkipDWARF, // emit DWARF except when -internal-nodwarf is passed
}