From 178459ff343a2771d5f30f04467d2f032d6b3565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 29 Apr 2024 11:37:47 +0200 Subject: [PATCH] fix: support empty dictionary keys in input (#245) * fix: support empty dictionary keys in input Certain old keys in `msvs_settings` (like "LinkIncremental") are moved to the top level when translated to `msbuild_settings`. This change allows to set them when `msbuild_settings` are authored directly. * Update pylib/gyp/input.py Co-authored-by: Christian Clauss --------- Co-authored-by: Christian Clauss --- pylib/gyp/input.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylib/gyp/input.py b/pylib/gyp/input.py index 6b61e4e2..7150269c 100644 --- a/pylib/gyp/input.py +++ b/pylib/gyp/input.py @@ -2536,6 +2536,8 @@ def ProcessListFiltersInDict(name, the_dict): lists = [] del_lists = [] for key, value in the_dict.items(): + if not key: + continue operation = key[-1] if operation not in {"!", "/"}: continue