README: sync/atomic

This commit is contained in:
xushiwei
2024-06-17 03:52:05 +08:00
parent b4794dc541
commit d73f77affc
2 changed files with 3 additions and 0 deletions

View File

@@ -208,6 +208,7 @@ Here are the Go packages that can be imported correctly:
* [unicode/utf16](https://pkg.go.dev/unicode/utf16)
* [math/bits](https://pkg.go.dev/math/bits)
* [math](https://pkg.go.dev/math)
* [sync/atomic](https://pkg.go.dev/sync/atomic) (partially)
## How to install

View File

@@ -1019,6 +1019,8 @@ func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files [
alt, hasPatch := patches[pkgPath]
if hasPatch {
pkgTypes = typepatch.Pkg(pkgTypes, alt.Pkg)
pkg.Pkg = pkgTypes
alt.Pkg = pkgTypes
}
if packages.DebugPackagesLoad {
log.Println("==> NewPackageEx", pkgPath, hasPatch)