diff --git a/Meta/gn/secondary/Tests/unittest.gni b/Meta/gn/secondary/Tests/unittest.gni index 80d71ec334..0f69135726 100644 --- a/Meta/gn/secondary/Tests/unittest.gni +++ b/Meta/gn/secondary/Tests/unittest.gni @@ -8,7 +8,11 @@ template("unittest") { assert(!defined(invoker.output_dir), "cannot set unittest output_dir") assert(!defined(invoker.testonly), "cannot set unittest testonly") - deps = [ "//AK" ] + if (!defined(invoker.deps)) { + deps = [] + } + + deps += [ "//AK" ] if (has_custom_main) { deps += [ "//Userland/Libraries/LibTest" ] } else if (use_js_main) {