Kleaf: Make --real_clang_path a shell script arg
* Since this only affectis the behavior of the script make it a script
argument instead of a Bazel flag.
Fixes: 5532fe464015 ("Kleaf: Add option for full clang path in compile commands")
Bug: 350428415
Change-Id: I9daa36da0229a8e50627047e1338cc785df7b139
Signed-off-by: Ulises Mendez Martinez <[email protected]>
diff --git a/kleaf/docs/compile_commands.md b/kleaf/docs/compile_commands.md
index fc1928e..7facdca 100644
--- a/kleaf/docs/compile_commands.md
+++ b/kleaf/docs/compile_commands.md
@@ -20,6 +20,14 @@
$ tools/bazel run //common:kernel_aarch64_compile_commands -- /tmp/compile_commands.json
```
+Use the option `--real_clang_path` to update `clang`'s value of the
+`"command"`'s in the generated `.json` with its absolute path.
+
+```shell
+$ tools/bazel run //common:kernel_aarch64_compile_commands -- --real_clang_path
+```
+
+
## Device kernel
If you want to build `compile_commands.json` for in-tree modules, create a