aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2026-01-12 18:58:23 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-20 19:22:54 +0000
commitcf20fe98a57b940f293234cb22c3cd51a1c9fa9d (patch)
tree7078798cbd69c2c1fbdf50a54c99c32edd8336a7 /tools
parent4aba25c79aa71d1a21427a5be778198d9d0b698f (diff)
tools/clang/codesearch: support building with make
Currently, clang tools are built by copying their code into a llvm-project repository and adding build rule to LLVM's CMake. This allows pinning a specific LLVM hash which is convenient but it's also a bit painful to copy code across repositories. This adds a rule to make that can build syz-codesearch with a simple g++ invocation that uses llvm-config to get the LLVM compiler and linker flags and hardcodes some clang libraries to link against since I could not find a better way. (llvm-config does not have "components" for clang)
Diffstat (limited to 'tools')
-rw-r--r--tools/clang/codesearch/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/clang/codesearch/README.md b/tools/clang/codesearch/README.md
index 3f444f61d..6d876c78e 100644
--- a/tools/clang/codesearch/README.md
+++ b/tools/clang/codesearch/README.md
@@ -5,4 +5,5 @@ Clang-based tool that indexes kernel source code to power
agentic tool.
The tool can be built following the procedure described for
-[syz-declextract tool](/tools/syz-declextract/README.md).
+[syz-declextract tool](/tools/syz-declextract/README.md) or with `make
+codesearch`.