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.