Skip to content

Commit

Permalink
meta: Fix Linux compile command generation
Browse files Browse the repository at this point in the history
This probably broke when we updated Bazel at some point, and it's yet to
be fixed in upstream.
  • Loading branch information
robinlinden committed Nov 22, 2024
1 parent 35dc92e commit 46b1dc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ http_archive(
http_archive(
name = "hedron_compile_commands",
integrity = "sha256-ZYEiz7HyW+duohKwD16wR9jirci8+SO5GEYfKx43zfI=",
patch_cmds = [
# .h can also appear as a c_source_extension with the new syntax-checking Bazel does.
# See: https://github.com/hedronvision/bazel-compile-commands-extractor/pull/219
"""sed -i'' -e "s/('.c', '.i')/('.c', '.i', '.h')/" refresh.template.py""",
],
strip_prefix = "bazel-compile-commands-extractor-4f28899228fb3ad0126897876f147ca15026151e",
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/4f28899228fb3ad0126897876f147ca15026151e.tar.gz",
)
Expand Down

0 comments on commit 46b1dc6

Please sign in to comment.