From a5615c69b1043e0c0342734c2282d9fd288c0436 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 19 Sep 2016 09:54:44 -0400 Subject: [PATCH] BUILD.gn: Disable pool alloc on all translator dependents when fuzzing It contains defines that need to be consistent between the header and the implementation. BUG=angleproject:1522 BUG=chromium:647807 Change-Id: Ica144c455b7366bd9939a07b171edffe5af8bf35 Reviewed-on: https://chromium-review.googlesource.com/386945 Commit-Queue: Corentin Wallez Reviewed-by: Jamie Madill --- BUILD.gn | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 26b03040d..8c5ef5703 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -115,9 +115,10 @@ static_library("preprocessor") { config("translator_static_config") { defines = [ "ANGLE_TRANSLATOR_STATIC" ] - if (use_libfuzzer) { - defines += [ "ANGLE_TRANSLATOR_DISABLE_POOL_ALLOC" ] - } +} + +config("translator_disable_pool_alloc") { + defines = [ "ANGLE_TRANSLATOR_DISABLE_POOL_ALLOC" ] } config("debug_annotations_config") { @@ -203,6 +204,9 @@ static_library("translator_lib") { ":translator_static_config", ] public_configs = [ ":external_config" ] + if (use_libfuzzer) { + all_dependent_configs = [ ":translator_disable_pool_alloc" ] + } deps = [ ":includes",