[resultdb] Add resultdb tool to linux_x64_only_tools.
Change-Id: I1ae3281f99a50e40933497b17b728bd6978816ce
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/436194
Commit-Queue: Yuan Zhi <yuanzhi@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
Reviewed-by: Petr Hosek <phosek@google.com>
diff --git a/tools/BUILD.gn b/tools/BUILD.gn
index f4daa45..1816b7f 100644
--- a/tools/BUILD.gn
+++ b/tools/BUILD.gn
@@ -45,6 +45,7 @@
# Tools that are only needed on Linux x64, regardless of the current host.
linux_x64_only_tools = [
"//src/diagnostics/triage:install",
+ "//tools/testing/resultdb",
"//tools/testing/tefmocheck",
]
diff --git a/tools/testing/resultdb/BUILD.gn b/tools/testing/resultdb/BUILD.gn
index 6a0409e..2aa5327 100644
--- a/tools/testing/resultdb/BUILD.gn
+++ b/tools/testing/resultdb/BUILD.gn
@@ -22,6 +22,10 @@
go_binary("resultdb") {
gopackage = "go.fuchsia.dev/fuchsia/tools/testing/resultdb"
deps = [ ":main" ]
+
+ # Needed to support cross-compilation. The infra recipes always needs this
+ # built for Linux, even if build happens on Mac.
+ cgo = false
}
group("tests") {