Skip to content

Commit aab0b24

Browse files
segevfinercclauss
andauthored
Update pylib/gyp/generator/compile_commands_json.py
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 89cc9e4 commit aab0b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylib/gyp/generator/compile_commands_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def GenerateOutput(target_list, target_dicts, data, params):
112112
try:
113113
# generator_output can be `None` on Windows machines, or even not
114114
# defined in other cases
115-
output_dir = params["options"].generator_output
116-
except (AttributeError, KeyError):
115+
output_dir = params.get("options").generator_output
116+
except AttributeError:
117117
pass
118118
output_dir = output_dir or params["generator_flags"].get("output_dir", "out")
119119
for configuration_name, commands in per_config_commands.items():

0 commit comments

Comments
 (0)