Skip to content

Commit bdd68da

Browse files
committed
-M rather than --dependencies allows us to support the zig compiler
See #130 Fixes #131
1 parent a716ac0 commit bdd68da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refresh.template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def _get_headers_gcc(compile_args: typing.List[str], source_path: str, action_ke
252252
if is_nvcc:
253253
header_cmd += ['--generate-dependencies']
254254
else:
255-
header_cmd += ['--dependencies', '--print-missing-file-dependencies'] # Allows us to continue on past missing (generated) files--whose paths may be wrong (listed as written in the include)!
255+
# -M rather than --dependencies allows us to support the zig compiler. See https://github.com/hedronvision/bazel-compile-commands-extractor/pull/130
256+
header_cmd += ['-M', '--print-missing-file-dependencies'] # Allows us to continue on past missing (generated) files--whose paths may be wrong (listed as written in the include)!
256257

257258
header_search_process = _subprocess_run_spilling_over_to_param_file_if_needed( # Note: gcc/clang can be run from Windows, too.
258259
header_cmd,

0 commit comments

Comments
 (0)