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: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Corentin Wallez 2016-09-19 09:54:44 -04:00 коммит произвёл Commit Bot
Родитель 2e60034b27
Коммит a5615c69b1
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -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",