LLGoPackage: PkgPyModule
This commit is contained in:
@@ -123,6 +123,7 @@ type instrOrValue interface {
|
||||
const (
|
||||
PkgNormal = iota
|
||||
PkgLLGo
|
||||
PkgPyModule // py.<module>
|
||||
PkgNoInit // noinit: a package that don't need to be initialized
|
||||
PkgDeclOnly // decl: a package that only have declarations
|
||||
PkgLinkIR // link llvm ir (.ll)
|
||||
|
||||
@@ -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, ""
|
||||
|
||||
Reference in New Issue
Block a user