From 2526e8b0121cba51b0734fb90f8ddf5e7e8006f9 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 4 Mar 2024 12:30:41 -0800 Subject: [PATCH] Skip configuration dependency if unit tests are disabled. --- testing/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/BUILD.gn b/testing/BUILD.gn index a6e20e72b9f23..4ac720dca4df5 100644 --- a/testing/BUILD.gn +++ b/testing/BUILD.gn @@ -51,7 +51,7 @@ source_set("testing") { sources = [ "run_all_unittests.cc" ] - if (is_linux) { + if (enable_unittests && is_linux) { # So that we can call gtk_init in main(). configs += [ "//flutter/shell/platform/linux/config:gtk" ] }