diff --git a/devel/fbthrift/files/patch-thrift_lib_cpp2_CMakeLists.txt b/devel/fbthrift/files/patch-thrift_lib_cpp2_CMakeLists.txt new file mode 100644 index 000000000000..b5d6202999fc --- /dev/null +++ b/devel/fbthrift/files/patch-thrift_lib_cpp2_CMakeLists.txt @@ -0,0 +1,18 @@ +Fix race condition with Ninja >= 1.12.0 where any_rep_types.h is not generated +before Any.cpp is compiled. + +https://github.com/facebook/fbthrift/pull/599 + +--- thrift/lib/cpp2/CMakeLists.txt.orig 2024-05-02 22:42:02 UTC ++++ thrift/lib/cpp2/CMakeLists.txt +@@ -109,8 +109,8 @@ add_library( + type/TypeRegistry.cpp + type/UniversalName.cpp + ) +-add_dependencies(thrifttype type-cpp2-target thriftannotation thrifttyperep +- thriftprotocol) ++add_dependencies(thrifttype any_rep-cpp2-target type-cpp2-target ++ thriftannotation thrifttyperep thriftprotocol) + target_link_libraries( + thrifttype + PUBLIC