diff --git a/refresh.template.py b/refresh.template.py index 194f365..cdd47d2 100644 --- a/refresh.template.py +++ b/refresh.template.py @@ -1225,10 +1225,12 @@ def _get_commands(target: str, flags: str): # If https://github.com/clangd/clangd/issues/123 is resolved and we're not doing header extraction, we could try removing this, checking that there aren't erroneous red squigglies squigglies before the module maps are generated. # If Bazel starts supporting modules (https://github.com/bazelbuild/bazel/issues/4005), we'll probably need to make changes that subsume this. '--features=-layering_check', + # Disable parse_headers feature which has a command line with no source file. The resulting compile command would conflict with other knowledge anyways. + '--features=-parse_headers' ] if _get_bazel_version() >= (6, 1, 0): - aquery_args += ['--host_features=-compiler_param_file', '--host_features=-layering_check'] + aquery_args += ['--host_features=-compiler_param_file', '--host_features=-layering_check', '--host_features=-parse_headers'] aquery_args += additional_flags