From 20cb283a36d6f8644e3183f0819d57698447e57b Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Sat, 30 Mar 2024 22:43:01 +0300 Subject: [PATCH] Review fix --- pylib/gyp/generator/compile_commands_json.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylib/gyp/generator/compile_commands_json.py b/pylib/gyp/generator/compile_commands_json.py index 37df176b..ef763901 100644 --- a/pylib/gyp/generator/compile_commands_json.py +++ b/pylib/gyp/generator/compile_commands_json.py @@ -109,6 +109,7 @@ def GenerateOutput(target_list, target_dicts, data, params): AddCommandsForTarget(cwd, target, params, per_config_commands) try: + # generator_output can be `None`, which means the current working directory output_dir = params["options"].generator_output or os.getcwd() except (AttributeError, KeyError): output_dir = params["generator_flags"].get("output_dir", "out")