• Matthew Dempsky's avatar
    cmd/compile: fix GOEXPERIMENT checks · bd983a6d
    Matthew Dempsky authored
    GOEXPERIMENT is only set during make.bash, so checking the environment
    variable isn't effectual. Instead, check the values exposed by objabi.
    
    These experiments look potentially safe, but it seems too late in the
    release cycle to try to assuage that. The one exception is frame
    pointer experiment, which is trivially safe: it just amounts to
    incrementing some stack offsets by PtrSize.
    
    Fixes #22223.
    
    Change-Id: I46dc7c54b1347143d02d6b9635038230cda6d164
    Reviewed-on: https://go-review.googlesource.com/80760Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    bd983a6d
main.go 35.8 KB