canSkipToBuild

This commit is contained in:
xushiwei
2024-06-17 05:33:07 +08:00
parent bcf44b8ab2
commit bf0148e047
4 changed files with 42 additions and 41 deletions

View File

@@ -25,7 +25,6 @@ import (
"log"
"os"
"sort"
"strings"
"github.com/goplus/llgo/cl/blocks"
"github.com/goplus/llgo/internal/typepatch"
@@ -91,20 +90,6 @@ func (p *context) pkgNoInit(pkg *types.Package) bool {
return false
}
func ignoreName(name string) bool {
/* TODO(xsw): confirm this is not needed more
if name == "unsafe.init" {
return true
}
*/
return strings.HasPrefix(name, "internal/") || strings.HasPrefix(name, "crypto/") ||
strings.HasPrefix(name, "arena.") || strings.HasPrefix(name, "maps.") ||
strings.HasPrefix(name, "time.") || strings.HasPrefix(name, "syscall.") ||
strings.HasPrefix(name, "os.") || strings.HasPrefix(name, "plugin.") ||
strings.HasPrefix(name, "reflect.") || strings.HasPrefix(name, "errors.") ||
strings.HasPrefix(name, "runtime/")
}
// -----------------------------------------------------------------------------
type instrOrValue interface {