]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/staticdata/data.go
internal/buildcfg: move build configuration out of cmd/internal/objabi
[gostls13.git] / src / cmd / compile / internal / staticdata / data.go
index 7ca05d3bf47dd6392261a90684f47605c48d37c9..b5206c2442817526642c9bd9d9b12e1a2d919eec 100644 (file)
@@ -8,6 +8,7 @@ import (
        "crypto/sha256"
        "fmt"
        "go/constant"
+       "internal/buildcfg"
        "io"
        "io/ioutil"
        "os"
@@ -269,7 +270,7 @@ func NeedFuncSym(fn *ir.Func) {
                // funcsymsmu, like in FuncSym.
                base.Fatalf("NeedFuncSym must be called in serial")
        }
-       if fn.ABI != obj.ABIInternal && objabi.Experiment.RegabiWrappers {
+       if fn.ABI != obj.ABIInternal && buildcfg.Experiment.RegabiWrappers {
                // Function values must always reference ABIInternal
                // entry points, so it doesn't make sense to create a
                // funcsym for other ABIs.