From 46b1dc622b26bc3216eab5a8248b1ce53738bf74 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Fri, 22 Nov 2024 02:18:10 +0100 Subject: [PATCH] meta: Fix Linux compile command generation This probably broke when we updated Bazel at some point, and it's yet to be fixed in upstream. --- WORKSPACE | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index b66000ca..265efa95 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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", )