From 1e49678f294d6d0be4b9280d13bb9a233aa37139 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 14 Jul 2025 19:13:08 +0300 Subject: [PATCH] Fix dependencies to communicator_bindings.h --- pgxn/neon/Makefile | 3 ++- pgxn/neon/neon.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pgxn/neon/Makefile b/pgxn/neon/Makefile index df9a6f0e4b..3d75d3d14e 100644 --- a/pgxn/neon/Makefile +++ b/pgxn/neon/Makefile @@ -58,7 +58,8 @@ WALPROP_OBJS = \ # libcommunicator.a is built by cargo from the Rust sources under communicator/ # subdirectory. `cargo build` also generates communicator_bindings.h. -neon.o: communicator/communicator_bindings.h +communicator_process.o: communicator/communicator_bindings.h +file_cache.o: communicator/communicator_bindings.h $(NEON_CARGO_ARTIFACT_TARGET_DIR)/libcommunicator.a communicator/communicator_bindings.h &: (cd $(srcdir)/communicator && cargo build $(CARGO_BUILD_FLAGS) $(CARGO_PROFILE)) diff --git a/pgxn/neon/neon.c b/pgxn/neon/neon.c index d8ea20331d..bb13d1637b 100644 --- a/pgxn/neon/neon.c +++ b/pgxn/neon/neon.c @@ -44,9 +44,6 @@ #include "storage/ipc.h" #endif -/* the rust bindings, generated by cbindgen */ -#include "communicator/communicator_bindings.h" - PG_MODULE_MAGIC; void _PG_init(void);