fix: symbol not found when building in baremental environment

This commit is contained in:
Haolan
2025-09-05 16:27:38 +08:00
parent 6588f36123
commit 2d1120bf69
15 changed files with 143 additions and 34 deletions

View File

@@ -0,0 +1,11 @@
//go:build !baremental
package runtime
const (
LLGoPackage = "link"
LLGoFiles = "_wrap/runtime.c"
)
//go:linkname c_maxprocs C.llgo_maxprocs
func c_maxprocs() int32