cl: don't ignore standard libraries

This commit is contained in:
Li Jie
2025-01-16 21:55:25 +08:00
parent 727ec8a5cf
commit 491a23b21e
4 changed files with 2 additions and 39 deletions

View File

@@ -854,13 +854,7 @@ func canSkipToBuild(pkgPath string) bool {
if _, ok := hasAltPkg[pkgPath]; ok {
return false
}
switch pkgPath {
case "unsafe":
return true
default:
return strings.HasPrefix(pkgPath, "internal/") ||
strings.HasPrefix(pkgPath, "runtime/internal/")
}
return pkgPath == "unsafe"
}
// findDylibDep finds the dylib dependency in the executable. It returns empty