README: sync/atomic
This commit is contained in:
@@ -208,6 +208,7 @@ Here are the Go packages that can be imported correctly:
|
|||||||
* [unicode/utf16](https://pkg.go.dev/unicode/utf16)
|
* [unicode/utf16](https://pkg.go.dev/unicode/utf16)
|
||||||
* [math/bits](https://pkg.go.dev/math/bits)
|
* [math/bits](https://pkg.go.dev/math/bits)
|
||||||
* [math](https://pkg.go.dev/math)
|
* [math](https://pkg.go.dev/math)
|
||||||
|
* [sync/atomic](https://pkg.go.dev/sync/atomic) (partially)
|
||||||
|
|
||||||
|
|
||||||
## How to install
|
## How to install
|
||||||
|
|||||||
@@ -1019,6 +1019,8 @@ func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files [
|
|||||||
alt, hasPatch := patches[pkgPath]
|
alt, hasPatch := patches[pkgPath]
|
||||||
if hasPatch {
|
if hasPatch {
|
||||||
pkgTypes = typepatch.Pkg(pkgTypes, alt.Pkg)
|
pkgTypes = typepatch.Pkg(pkgTypes, alt.Pkg)
|
||||||
|
pkg.Pkg = pkgTypes
|
||||||
|
alt.Pkg = pkgTypes
|
||||||
}
|
}
|
||||||
if packages.DebugPackagesLoad {
|
if packages.DebugPackagesLoad {
|
||||||
log.Println("==> NewPackageEx", pkgPath, hasPatch)
|
log.Println("==> NewPackageEx", pkgPath, hasPatch)
|
||||||
|
|||||||
Reference in New Issue
Block a user