cl handleTypeDecl: typeBackground
This commit is contained in:
@@ -247,7 +247,6 @@ func buildAllPkgs(ctx *context, initial []*packages.Package, verbose bool) (pkgs
|
||||
continue
|
||||
}
|
||||
built[pkg.PkgPath] = none{}
|
||||
//parsePkg(ctx, aPkg, verbose)
|
||||
switch kind, param := cl.PkgKindOf(pkg.Types); kind {
|
||||
case cl.PkgDeclOnly:
|
||||
// skip packages that only contain declarations
|
||||
@@ -586,21 +585,6 @@ func checkFlag(arg string, i *int, verbose *bool, swflags map[string]bool) {
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
rootDir string
|
||||
)
|
||||
|
||||
func llgoRoot() string {
|
||||
if rootDir == "" {
|
||||
root := os.Getenv("LLGOROOT")
|
||||
if root == "" {
|
||||
panic("todo: LLGOROOT not set")
|
||||
}
|
||||
rootDir, _ = filepath.Abs(root)
|
||||
}
|
||||
return rootDir
|
||||
}
|
||||
|
||||
func appendLinkFiles(args []string, file string) []string {
|
||||
if isSingleLinkFile(file) {
|
||||
return append(args, file)
|
||||
|
||||
Reference in New Issue
Block a user