Commit a5615c69 by Corentin Wallez Committed by Commit Bot

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 <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 2e60034b
...@@ -115,9 +115,10 @@ static_library("preprocessor") { ...@@ -115,9 +115,10 @@ static_library("preprocessor") {
config("translator_static_config") { config("translator_static_config") {
defines = [ "ANGLE_TRANSLATOR_STATIC" ] 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") { config("debug_annotations_config") {
...@@ -203,6 +204,9 @@ static_library("translator_lib") { ...@@ -203,6 +204,9 @@ static_library("translator_lib") {
":translator_static_config", ":translator_static_config",
] ]
public_configs = [ ":external_config" ] public_configs = [ ":external_config" ]
if (use_libfuzzer) {
all_dependent_configs = [ ":translator_disable_pool_alloc" ]
}
deps = [ deps = [
":includes", ":includes",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment