Skip to content

Translate compile_commands.json in Bazel #27

@skhal

Description

@skhal

lab/refresh_commands

Lines 11 to 15 in baf7f2b

sed \
-i'' \
-e 's,/usr/bin/clang-21,/usr/local/bin/clang21,' \
-e 's,/usr/lib/llvm-21,/usr/local/llvm21,' \
compile_commands.json

Instead of updating compile commands with sed(1) in a script, let Bazel update the commands.

The rule should have source (/usr) and target (/usr/local) paths configurable.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions