fbthrift icon indicating copy to clipboard operation
fbthrift copied to clipboard

ProtocolBench Build Rules

Open lukalt opened this issue 1 year ago • 0 comments

The provided build scripts lack rules for building ProtocolBench (https://github.com/facebook/fbthrift/blob/main/thrift/lib/cpp2/test/ProtocolBench.cpp) and it is not intuitive how to build it manually.

I tried building it with a handcrafted CMakeLists.txt after compiling some thrift files:

cd /fbthrift/thrift/lib/cpp2/test && thrift1 -I /fbthrift/ --gen mstch_cpp2:frozen2 ProtocolBenchmark.thrift
cd /fbthrift/thrift/lib/cpp2/test && thrift1 -I /fbthrift/ --gen mstch_cpp2:frozen2 ProtocolBenchData.thrift
cd /fbthrift/thrift/lib/thrift && for x in *.thrift; do thrift1 -I /fbthrift/ --gen mstch_cpp2:frozen2 $x; done
cd /fbthrift/thrift/conformance/if && for x in *.thrift; do thrift1 -I /fbthrift/ --gen mstch_cpp2:frozen2 $x; done

I ran into a couple link errors (see cmake_output.txt) and are unable to resolve them myself.

Could you please provide instructions on how to build ProtocolBench. It would be really helpful to have cmake rules provided inside the repository for that.

lukalt avatar Sep 10 '24 22:09 lukalt