Merge pull request #146 from xushiwei/q

LLGoPackage: PkgPyModule
This commit is contained in:
xushiwei
2024-05-11 06:47:25 +08:00
committed by GitHub
4 changed files with 8 additions and 2 deletions

View File

@@ -101,6 +101,8 @@ func pkgKind(v string) (int, string) {
// return PkgLinkBitCode
if strings.HasPrefix(v, "link:") { // "link: <libpath>"
return PkgLinkExtern, v[5:]
} else if strings.HasPrefix(v, "py.") { // "py.<module>"
return PkgPyModule, v[3:]
}
}
return PkgLLGo, ""