github.com/cockroachdb/cockroachdb-parser@v0.23.3-0.20240213214944-911057d40c9a/patches/0004-fix-bazel-compl.patch (about)

     1  From fd8c124e5968547a82fecc92e6081fdd71a4b49a Mon Sep 17 00:00:00 2001
     2  From: Jeremy Yang <jyang@cockroachlabs.com>
     3  Date: Tue, 13 Feb 2024 10:17:56 -0800
     4  Subject: [PATCH] fix bazel compilation for grunning
     5  
     6  ---
     7   pkg/util/grunning/disabled.go |  5 -----
     8   pkg/util/grunning/enabled.go  | 27 ---------------------------
     9   2 files changed, 32 deletions(-)
    10   delete mode 100644 pkg/util/grunning/enabled.go
    11  
    12  diff --git a/pkg/util/grunning/disabled.go b/pkg/util/grunning/disabled.go
    13  index f175eb2..89fcb2d 100644
    14  --- a/pkg/util/grunning/disabled.go
    15  +++ b/pkg/util/grunning/disabled.go
    16  @@ -8,11 +8,6 @@
    17   // by the Apache License, Version 2.0, included in the file
    18   // licenses/APL.txt.
    19   
    20  -// See grunning.Supported() for an explanation behind this build tag.
    21  -//
    22  -//go:build (linux && s390x) || !bazel
    23  -// +build linux,s390x !bazel
    24  -
    25   package grunning
    26   
    27   func grunningnanos() int64 { return 0 }
    28  diff --git a/pkg/util/grunning/enabled.go b/pkg/util/grunning/enabled.go
    29  deleted file mode 100644
    30  index f8cd1b5..0000000
    31  --- a/pkg/util/grunning/enabled.go
    32  +++ /dev/null
    33  @@ -1,27 +0,0 @@
    34  -// Copyright 2022 The Cockroach Authors.
    35  -//
    36  -// Use of this software is governed by the Business Source License
    37  -// included in the file licenses/BSL.txt.
    38  -//
    39  -// As of the Change Date specified in that file, in accordance with
    40  -// the Business Source License, use of this software will be governed
    41  -// by the Apache License, Version 2.0, included in the file
    42  -// licenses/APL.txt.
    43  -
    44  -// See grunning.Supported() for an explanation behind this build tag.
    45  -//
    46  -//go:build !((linux && s390x) || !bazel)
    47  -// +build !linux !s390x
    48  -// +build bazel
    49  -
    50  -package grunning
    51  -
    52  -import _ "unsafe" // for go:linkname
    53  -
    54  -// grunningnanos returns the running time observed by the current goroutine by
    55  -// linking to a private symbol in the (patched) runtime package.
    56  -//
    57  -//go:linkname grunningnanos runtime.grunningnanos
    58  -func grunningnanos() int64
    59  -
    60  -func supported() bool { return true }
    61  -- 
    62  2.38.1
    63