From e2f5d0f1b2e9bad8cd0701422c211e665b492fb7 Mon Sep 17 00:00:00 2001 From: Keir Mierle Date: Mon, 16 Dec 2019 11:36:22 -0800 Subject: [PATCH] Fix ARM build when not running tests on device Change-Id: Ib1110355cdc3fe4065922a1efa3a4d8b39169dd7 --- BUILD.gn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index f0319a303..5514010b1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,9 +17,15 @@ import("$dir_pw_unit_test/test.gni") # 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") {