diff --git a/rlp/safe.go b/rlp/safe.go
index 827e04bf8a..3c910337b6 100644
--- a/rlp/safe.go
+++ b/rlp/safe.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 nacl || js || wasip1 || !cgo
-// +build nacl js wasip1 !cgo
+//go:build nacl || js || !cgo
+// +build nacl js !cgo
package rlp
diff --git a/rlp/unsafe.go b/rlp/unsafe.go
index e1e7ca19a2..10868caaf2 100644
--- a/rlp/unsafe.go
+++ b/rlp/unsafe.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 !nacl && !js && !wasip1 && cgo
-// +build !nacl,!js,!wasip1,cgo
+//go:build !nacl && !js && cgo
+// +build !nacl,!js,cgo
package rlp