diff --git a/metrics/cpu_disabled.go b/metrics/cpu_disabled.go
index 8404b0edd4..37c3e1b8f7 100644
--- a/metrics/cpu_disabled.go
+++ b/metrics/cpu_disabled.go
@@ -14,8 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see .
-//go:build ios || js || wasip1
-// +build ios js wasip1
+//go:build ios || js || wasip1 || tinygo
+// +build ios js wasip1 tinygo
package metrics
diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go
index 838c32fad8..37c23cad1a 100644
--- a/metrics/cpu_enabled.go
+++ b/metrics/cpu_enabled.go
@@ -14,8 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see .
-//go:build !ios && !js && !wasip1
-// +build !ios,!js,!wasip1
+//go:build !ios && !js && !wasip1 && !tinygo
+// +build !ios,!js,!wasip1,!tinygo
package metrics