From 224e3b94402f528c28ef28e0adbd0a601a4c371e Mon Sep 17 00:00:00 2001 From: xgopilot Date: Thu, 16 Oct 2025 03:14:32 +0000 Subject: [PATCH] fix: add Go 1.23+ build constraint to gobuild demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- _demo/go/gobuild/demo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_demo/go/gobuild/demo.go b/_demo/go/gobuild/demo.go index e3c253f3..07626212 100644 --- a/_demo/go/gobuild/demo.go +++ b/_demo/go/gobuild/demo.go @@ -1,3 +1,5 @@ +//go:build go1.23 + package main import (