Fix ARM build when not running tests on device
Change-Id: Ib1110355cdc3fe4065922a1efa3a4d8b39169dd7
diff --git a/BUILD.gn b/BUILD.gn
index f0319a3..5514010 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -17,9 +17,15 @@
# By default, Pigweed will build this target when invoking ninja.
group("default") {
deps = [
- ":pw_module_tests_run",
"$dir_pigweed/docs",
]
+ if (pw_automatic_test_runner == "") {
+ # Without a test runner defined, build the tests but don't run them.
+ deps += [ ":pw_module_tests" ]
+ } else {
+ # With a test runner, depend on the run targets so they run with the build.
+ deps += [ ":pw_module_tests_run" ]
+ }
}
group("pw_facades") {