Skip to content

Commit

Permalink
fix: compile_commands.json for MSVC
Browse files Browse the repository at this point in the history
generator_output is None when trying to use that in Node.js via vcbuild.bat
  • Loading branch information
segevfiner committed Mar 30, 2024
1 parent 7e13b43 commit 9f9bb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylib/gyp/generator/compile_commands_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
AddCommandsForTarget(cwd, target, params, per_config_commands)

try:
output_dir = params["options"].generator_output
output_dir = params["options"].generator_output or os.getcwd()
except (AttributeError, KeyError):
output_dir = params["generator_flags"].get("output_dir", "out")
for configuration_name, commands in per_config_commands.items():
Expand Down

0 comments on commit 9f9bb3b

Please sign in to comment.