Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down