mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
Enable wasm pointer tracking for gc=none.
This commit is contained in:
committed by
Ron Evans
parent
bb5050a50d
commit
0b3a7280fa
@@ -105,6 +105,8 @@ func (c *Config) GC() string {
|
||||
// that can be traced by the garbage collector.
|
||||
func (c *Config) NeedsStackObjects() bool {
|
||||
switch c.GC() {
|
||||
case "none":
|
||||
fallthrough
|
||||
case "conservative":
|
||||
for _, tag := range c.BuildTags() {
|
||||
if tag == "tinygo.wasm" {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//go:build gc.conservative && tinygo.wasm
|
||||
// +build gc.conservative,tinygo.wasm
|
||||
//go:build (gc.conservative || gc.none) && tinygo.wasm
|
||||
// +build gc.conservative gc.none
|
||||
// +build tinygo.wasm
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user