build: fix unsafe.Sizeof for llgo:type C

This commit is contained in:
visualfc
2024-07-16 13:55:48 +08:00
parent 21a2f71ad9
commit 830c40440f
11 changed files with 283 additions and 168 deletions

View File

@@ -236,6 +236,10 @@ func (p Program) SetRuntime(runtime any) {
}
}
func (p Program) SetTypeBackground(fullName string, bg Background) {
p.gocvt.typbg[fullName] = bg
}
func (p Program) runtime() *types.Package {
if p.rt == nil {
p.rt = p.rtget()