This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch 0.23.0
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/0.23.0 by this push:
     new 5ed38106c build fixes
5ed38106c is described below

commit 5ed38106cf499de0fe76303b57677e40010ef495
Author: Jens Geyer <[email protected]>
AuthorDate: Thu Apr 9 22:48:02 2026 +0000

    build fixes
---
 lib/c_glib/test/fuzz/Makefile.am |  8 ++++----
 lib/cpp/test/fuzz/Makefile.am    | 11 ++++++++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/lib/c_glib/test/fuzz/Makefile.am b/lib/c_glib/test/fuzz/Makefile.am
index e7d0e3555..c00075469 100644
--- a/lib/c_glib/test/fuzz/Makefile.am
+++ b/lib/c_glib/test/fuzz/Makefile.am
@@ -19,10 +19,6 @@
 
 AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
 
-BUILT_SOURCES = \
-    gen-c_glib/fuzz_test_no_uuid_types.h \
-    gen-c_glib/fuzz_test_no_uuid_types.c
-
 noinst_LTLIBRARIES = libtestgencfuzz.la
 nodist_libtestgencfuzz_la_SOURCES = \
     gen-c_glib/fuzz_test_no_uuid_types.c \
@@ -60,6 +56,10 @@ fuzz_parse_binary_LDADD = \
 gen-c_glib/fuzz_test_no_uuid_types.c gen-c_glib/fuzz_test_no_uuid_types.h: 
$(top_srcdir)/test/v0.16/FuzzTestNoUuid.thrift
        $(THRIFT) --gen c_glib -r $<
 
+# Ensure generated headers exist before compiling sources that include them
+fuzz_parse_compact.$(OBJEXT): gen-c_glib/fuzz_test_no_uuid_types.h
+fuzz_parse_binary.$(OBJEXT): gen-c_glib/fuzz_test_no_uuid_types.h
+
 clean-local:
        $(RM) -r gen-c_glib/
        $(RM) *.o
diff --git a/lib/cpp/test/fuzz/Makefile.am b/lib/cpp/test/fuzz/Makefile.am
index 940484db9..a4fc1b9f5 100644
--- a/lib/cpp/test/fuzz/Makefile.am
+++ b/lib/cpp/test/fuzz/Makefile.am
@@ -19,9 +19,6 @@
 
 AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
 
-# Generate FuzzTest code
-BUILT_SOURCES = gen-cpp/FuzzTest_types.h
-
 noinst_LTLIBRARIES = libfuzztest_gen.la
 
 nodist_libfuzztest_gen_la_SOURCES = \
@@ -84,6 +81,14 @@ endif
 gen-cpp/FuzzTest_types.cpp gen-cpp/FuzzTest_types.h: 
$(top_srcdir)/test/FuzzTest.thrift
        $(THRIFT) --gen cpp $<
 
+# Ensure generated headers exist before compiling sources that include them
+FuzzParseCompact.$(OBJEXT): gen-cpp/FuzzTest_types.h
+FuzzParseBinary.$(OBJEXT): gen-cpp/FuzzTest_types.h
+FuzzRoundtripCompact.$(OBJEXT): gen-cpp/FuzzTest_types.h
+FuzzRoundtripBinary.$(OBJEXT): gen-cpp/FuzzTest_types.h
+FuzzParseJson.$(OBJEXT): gen-cpp/FuzzTest_types.h
+FuzzRoundtripJson.$(OBJEXT): gen-cpp/FuzzTest_types.h
+
 # Clean target
 clean-local:
        $(RM) -rf gen-cpp

Reply via email to