Skip to content

Commit

Permalink
Update pylib/gyp/generator/compile_commands_json.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
segevfiner and cclauss authored Apr 2, 2024
1 parent 7c60cb5 commit 89cc9e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylib/gyp/generator/compile_commands_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
output_dir = params["options"].generator_output
except (AttributeError, KeyError):
pass
if output_dir is None:
output_dir = params["generator_flags"].get("output_dir", "out")
output_dir = output_dir or params["generator_flags"].get("output_dir", "out")
for configuration_name, commands in per_config_commands.items():
filename = os.path.join(output_dir, configuration_name, "compile_commands.json")
gyp.common.EnsureDirExists(filename)
Expand Down

0 comments on commit 89cc9e4

Please sign in to comment.