Commit Graph

4 Commits

Author SHA1 Message Date
xgopilot
01ada11b74 fix: override go/build.defaultContext() to use gc compiler
Fixes #1346 by creating an overlay for go/build/build.go that sets
Compiler to "gc" in defaultContext(). This allows user code using
go/build package to work with llgo while preserving runtime.Compiler
as "llgo" for identification purposes.

The overlay replaces the entire go/build/build.go file with a modified
version where line 342 changes from 'c.Compiler = runtime.Compiler' to
'c.Compiler = "gc"'. This minimal change ensures go/build recognizes
llgo-compiled binaries without requiring changes to user code.

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com>
2025-10-15 11:58:36 +00:00
Li Jie
be4737461a make runtime compatible with wasm 2025-04-11 16:28:44 +08:00
Li Jie
a473901cfd runtime: patching testing/testing.go for go1.24 2025-02-19 11:46:47 +08:00
visualfc
0d218bb4b9 runtime: config overlay 2025-02-15 13:25:25 +08:00