From 23a2da5e955809c52c694eb0d7031084c8bdff81 Mon Sep 17 00:00:00 2001 From: "P.Y. Laligand" Date: Tue, 28 Jan 2020 15:07:43 -0800 Subject: [PATCH] [fuchsia] Only add fdio config if it's not already present. Change-Id: Ie5eef8fb76b7a9558791aae8572ec2c91d2e6b84 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2026287 Commit-Queue: Francois Rousseau Reviewed-by: Francois Rousseau --- build/crashpad_buildconfig.gni | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/crashpad_buildconfig.gni b/build/crashpad_buildconfig.gni index e1ef71f2..7540fb28 100644 --- a/build/crashpad_buildconfig.gni +++ b/build/crashpad_buildconfig.gni @@ -85,7 +85,10 @@ template("crashpad_executable") { } if (crashpad_is_in_fuchsia) { - configs += [ "//build/config/fuchsia:fdio_config" ] + fdio_config = [ "//build/config/fuchsia:fdio_config" ] + if (configs + fdio_config - fdio_config == configs) { + configs += fdio_config + } } } }