diff --git a/plugins/inputs/sql/drivers_sqlite.go b/plugins/inputs/sql/drivers_sqlite.go
index <HASH>..<HASH> 100644
--- a/plugins/inputs/sql/drivers_sqlite.go
+++ b/plugins/inputs/sql/drivers_sqlite.go
@@ -1,11 +1,8 @@
-//go:build !arm && !mips && !mipsle && !mips64 && !mips64le && !ppc64 && !(freebsd && arm64)
-// +build !arm
-// +build !mips
-// +build !mipsle
-// +build !mips64
-// +build !mips64le
-// +build !ppc64
-// +build !freebsd !arm64
+//go:build linux && freebsd && darwin && (!mips || !mips64)
+// +build linux
+// +build freebsd
+// +build darwin
+// +build !mips !mips64
 
 package sql
fix: Sync sql output and input build constraints to handle loong<I> in go<I>. (#<I>)