Add -gc=custom option (#3302)

* Add -gc=custom option
This commit is contained in:
Anuraag Agrawal
2023-01-29 04:24:56 +09:00
committed by GitHub
parent 13698b17f7
commit eebd2f648b
7 changed files with 67 additions and 6 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func (c *Config) GC() string {
// that can be traced by the garbage collector.
func (c *Config) NeedsStackObjects() bool {
switch c.GC() {
case "conservative", "precise":
case "conservative", "custom", "precise":
for _, tag := range c.BuildTags() {
if tag == "tinygo.wasm" {
return true