Skip to content

Commit 224e3b9

Browse files
fix: add Go 1.23+ build constraint to gobuild demo
Add //go:build go1.23 constraint to skip compilation on Go 1.21/1.22 where runtime.(*Func).Name is not implemented in llgo, causing linker errors when internal/bisect is pulled in as a dependency. The demo works correctly on Go 1.23+ where the dependency chain or internal/bisect behavior avoids calling the unimplemented method. Fixes compatibility issue reported in PR review. 🤖 Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com>
1 parent 7fbcc8c commit 224e3b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_demo/go/gobuild/demo.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build go1.23
2+
13
package main
24

35
import (

0 commit comments

Comments
 (0)