From fb7a1e0397e682d6fb43d451edf7f46497e082ca Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Tue, 19 May 2026 13:20:03 +0300 Subject: [PATCH] c-accel: add compile_flags.txt for clangd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the Tarantool include path, clangd can't find and the entire file cascades into undefined-symbol diagnostics. The actual make build is unaffected — only the editor experience. List the four common Tarantool include paths (macOS Homebrew, the Cellar-style symlink, /usr/local, /usr/include). Missing dirs are silently ignored by the compiler, so a single file works for both macOS and Linux. --- runtime/pb/c/compile_flags.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 runtime/pb/c/compile_flags.txt diff --git a/runtime/pb/c/compile_flags.txt b/runtime/pb/c/compile_flags.txt new file mode 100644 index 0000000000000000000000000000000000000000..3f7c031b53264e8efceda6425caa46bd1db308e1 --- /dev/null +++ b/runtime/pb/c/compile_flags.txt @@ -0,0 +1,7 @@ +-std=c99 +-Wall +-Wextra +-I/opt/homebrew/include/tarantool +-I/opt/homebrew/opt/tarantool/include/tarantool +-I/usr/local/include/tarantool +-I/usr/include/tarantool