From c32759a194e1cfd9006fb6821536e52cf2e5d2dd Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 29 May 2022 20:08:58 +0800 Subject: [PATCH] base: Don't depend on partition_alloc on OpenWrt --- src/base/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/BUILD.gn b/src/base/BUILD.gn index 5bb0ee73be..d42e60f7d5 100644 --- a/src/base/BUILD.gn +++ b/src/base/BUILD.gn @@ -1936,6 +1936,9 @@ mixed_component("base") { # partition_alloc code if use_partition_alloc = false because no code uses # partition_alloc. public_deps += [ "allocator/partition_allocator:partition_alloc" ] + if (current_os == "openwrt") { + public_deps -= [ "allocator/partition_allocator:partition_alloc" ] + } } # Windows.