From 0b6eabf0dd339d5e1aaf7028870ad55597413dbc Mon Sep 17 00:00:00 2001 From: Bogdan Habic Date: Fri, 27 Mar 2020 21:48:54 +0100 Subject: [PATCH] metrics: disable CPU stats (gosigar) on Darwing when nocgo is passed. --- metrics/cpu_disabled.go | 2 +- metrics/cpu_enabled.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/cpu_disabled.go b/metrics/cpu_disabled.go index 6c3428993f..82b300171c 100644 --- a/metrics/cpu_disabled.go +++ b/metrics/cpu_disabled.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -// +build ios +// +build ios darwin,!cgo package metrics diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go index 99d44e4002..75e1c92e0e 100644 --- a/metrics/cpu_enabled.go +++ b/metrics/cpu_enabled.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -// +build !ios +// +build darwin,cgo dragonfly freebsd linux nacl netbsd openbsd solaris windows package metrics