cl handleTypeDecl: typeBackground

This commit is contained in:
xushiwei
2024-07-09 12:38:34 +08:00
parent ce3955d393
commit e41da0d697
2 changed files with 37 additions and 45 deletions

View File

@@ -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)