1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
13 func SetUsesCgo(conf *types.Config) bool {
14 v := reflect.ValueOf(conf).Elem()
16 f := v.FieldByName("go115UsesCgo")
18 f = v.FieldByName("UsesCgo")
24 addr := unsafe.Pointer(f.UnsafeAddr())