set up go/types.Config.Sizes according to GOARCH
Otherwise we miscalculate int sizes, type sizes, alignments, and so on. Caught by the GOARCH=386 go test on CI, since the os package imports internal/syscall/unix, which uses arch-dependent padding. The different padding between our incorrect use of go/types and the correct typechecking done by the compiler caused different obfuscation of fields, as the struct types stringified differently, and they are used as a hash salt for field name obfuscation.pull/876/head
parent
4fcce60e3a
commit
48fac78ecc
Loading…
Reference in New Issue