If LLVM is built with a compiler other than clang, the compile_commands.json
file may contain compiler flags unknown by clang. When a clangd test is copied
into the build directory and checked, clangd will pick the unknown flag from
the file and cause a test failure. Create an empty compile_commands.json in
the test directory nested in the build directory to override it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
(I even struggled to find docs for the fix we used for clang-tidy, although it obviously works.)
Thank you!
Comment Actions
This broke buildbots because compile_commands.json being empty has other consequences.
Fixing forward in 9ffef0f24de0fc05b946e662a7b233a32ad058e3. Please don't land such infrastructure changes without approvals from code owners in the future.
Comment Actions
Hmm, I'd tested the change before creating this but it seems those tests are "UNSUPPORTED" on my system :(.