sweet: disable code on aix and plan9 to fix builds

blevesearch's dependencies don't build on AIX or plan9.
gopher-lua's dependencies don't build on plan9.

Fixes #49920.
Fixes #49919.

Change-Id: Ia8ef5b27784db26e77d5769e606beddcac5e782a
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/368754
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
diff --git a/sweet/benchmarks/bleve-index/main.go b/sweet/benchmarks/bleve-index/main.go
index 994271c..fb46b8c 100644
--- a/sweet/benchmarks/bleve-index/main.go
+++ b/sweet/benchmarks/bleve-index/main.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !plan9
+// +build !aix,!plan9
+
 package main
 
 import (
diff --git a/sweet/benchmarks/bleve-query/main.go b/sweet/benchmarks/bleve-query/main.go
index 73dad95..110b5f3 100644
--- a/sweet/benchmarks/bleve-query/main.go
+++ b/sweet/benchmarks/bleve-query/main.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !plan9
+// +build !aix,!plan9
+
 package main
 
 import (
diff --git a/sweet/benchmarks/bleve-query/terms.go b/sweet/benchmarks/bleve-query/terms.go
index a4b0443..56526d1 100644
--- a/sweet/benchmarks/bleve-query/terms.go
+++ b/sweet/benchmarks/bleve-query/terms.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !plan9
+// +build !aix,!plan9
+
 package main
 
 // TODO(mknyszek): Add more terms, approximately 50x more if possible.
diff --git a/sweet/benchmarks/gopher-lua/main.go b/sweet/benchmarks/gopher-lua/main.go
index d2db860..392bbb4 100644
--- a/sweet/benchmarks/gopher-lua/main.go
+++ b/sweet/benchmarks/gopher-lua/main.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !plan9
+// +build !plan9
+
 package main
 
 import (
diff --git a/sweet/generators/bleve-query.go b/sweet/generators/bleve-query.go
index 2429699..48b11c3 100644
--- a/sweet/generators/bleve-query.go
+++ b/sweet/generators/bleve-query.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !plan9
+// +build !aix,!plan9
+
 package generators
 
 import (
diff --git a/sweet/generators/bleve-query_unsupported.go b/sweet/generators/bleve-query_unsupported.go
new file mode 100644
index 0000000..65d2fa8
--- /dev/null
+++ b/sweet/generators/bleve-query_unsupported.go
@@ -0,0 +1,23 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build aix || plan9
+// +build aix plan9
+
+package generators
+
+import (
+	"fmt"
+	"runtime"
+
+	"golang.org/x/benchmarks/sweet/common"
+)
+
+// BleveQuery is a dynamic assets Generator for the bleve-query benchmark.
+type BleveQuery struct{}
+
+// Generate cannot run on these platforms.
+func (_ BleveQuery) Generate(_ *common.GenConfig) (err error) {
+	return fmt.Errorf("platform %s/%s unsupported", runtime.GOOS, runtime.GOARCH)
+}
diff --git a/third_party/bleve-bench/mapping.go b/third_party/bleve-bench/mapping.go
index adb2867..2e8fa73 100644
--- a/third_party/bleve-bench/mapping.go
+++ b/third_party/bleve-bench/mapping.go
@@ -16,6 +16,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !plan9
+// +build !aix,!plan9
+
 package blevebench
 
 import (