Text file src/runtime/race/mkcgo.sh

     1  #!/bin/bash
     2  
     3  hdr='
     4  // Copyright 2022 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  // Code generated by mkcgo.sh. DO NOT EDIT.
     9  
    10  //go:build race
    11  
    12  '
    13  
    14  convert() {
    15  	(echo "$hdr"; go tool cgo -dynpackage race -dynimport $1) | gofmt
    16  }
    17  
    18  convert race_darwin_arm64.syso >race_darwin_arm64.go
    19  convert internal/amd64v1/race_darwin.syso >race_darwin_amd64.go
    20  
    21  

View as plain text