Merge pull request #436 from luoliwoshang/link/warning

link:not exist method warning
This commit is contained in:
xushiwei
2024-07-02 19:43:37 +08:00
committed by GitHub

View File

@@ -270,7 +270,7 @@ func (p *context) initLink(line string, prefix int, f func(inPkgName string) (fu
} else { } else {
panic(line + ": no specified call convention. eg. //go:linkname Printf C.printf") panic(line + ": no specified call convention. eg. //go:linkname Printf C.printf")
} }
} else if c := inPkgName[0]; c >= 'A' && c <= 'Z' { } else {
fmt.Fprintln(os.Stderr, "==>", line) fmt.Fprintln(os.Stderr, "==>", line)
fmt.Fprintf(os.Stderr, "llgo: linkname %s not found and ignored\n", inPkgName) fmt.Fprintf(os.Stderr, "llgo: linkname %s not found and ignored\n", inPkgName)
} }