[cpuperf_provider] propagate cpu condition
...to prevent accidental inclusion on architectures where the source
doesn't compile.
Change-Id: Iedf5e5ad779a67437d3d6987c344abbd79953092
diff --git a/garnet/bin/cpuperf_provider/BUILD.gn b/garnet/bin/cpuperf_provider/BUILD.gn
index 0102a95..bd15f6c 100644
--- a/garnet/bin/cpuperf_provider/BUILD.gn
+++ b/garnet/bin/cpuperf_provider/BUILD.gn
@@ -103,21 +103,23 @@
]
}
-executable("cpuperf_provider_integration_tests") {
- testonly = true
- output_name = "cpuperf_provider_integration_tests"
+if (current_cpu == "x64") {
+ executable("cpuperf_provider_integration_tests") {
+ testonly = true
+ output_name = "cpuperf_provider_integration_tests"
- sources = [
- "cpuperf_provider_integration_tests.cc"
- ]
+ sources = [
+ "cpuperf_provider_integration_tests.cc",
+ ]
- deps = [
- "//garnet/lib/perfmon",
- "//src/developer/tracing/lib/test_utils",
- "//third_party/googletest:gtest",
- "//zircon/public/lib/trace-reader",
- "//zircon/public/lib/zx",
- ]
+ deps = [
+ "//garnet/lib/perfmon",
+ "//src/developer/tracing/lib/test_utils",
+ "//third_party/googletest:gtest",
+ "//zircon/public/lib/trace-reader",
+ "//zircon/public/lib/zx",
+ ]
+ }
}
test_package("cpuperf_provider_tests") {
@@ -133,9 +135,7 @@
]
if (current_cpu == "x64") {
- deps += [
- ":cpuperf_provider_integration_tests",
- ]
+ deps += [ ":cpuperf_provider_integration_tests" ]
tests += [
{