How to build the 32-bit GRPC binaries from sources with CMAKE on Linux?

282 views
Skip to first unread message

Roman Andronov

unread,
Oct 21, 2021, 4:47:14 PM10/21/21
to grpc.io

Does anyone know how to build the 32-bit GRPC binaries from sources with CMAKE on Linux? Which specific flags must be set to what specific values and passed to CMAKE?

We know how to build the 64-bit GRPC binaries from sources with CMAKE on Linux but we also need its 32-bit version. I would imagine that there has to be a way to turn off the default 64-bit build and turn on the 32-bit build instead.

Thank you.

pixel...@gmail.com

unread,
Nov 3, 2021, 4:16:40 PM11/3/21
to grpc.io
That's a very generic build question, not just grpc-related. Generally speaking, on Intel, you want to use -m32 as compilation and linker flags, which you can override with environment variables.

https://cmake.org/cmake/help/latest/envvar/CFLAGS.html
https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html
https://cmake.org/cmake/help/latest/envvar/LDFLAGS.html
Reply all
Reply to author
Forward
0 new messages