From cf20fe98a57b940f293234cb22c3cd51a1c9fa9d Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Mon, 12 Jan 2026 18:58:23 +0100 Subject: 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) --- tools/clang/codesearch/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/clang/codesearch/README.md') 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`. -- cgit mrf-deployment