How to Build ClickHouse on Linux for Mac OS X
The cross-build for Mac OS X is based on the Build instructions, follow them first.
Install Clang-8
Install Cross-Compilation Toolset
Let’s remember the path where we install cctools
as ${CCTOOLS}
Build ClickHouse
The resulting binary will have Mach-O executable format and can’t be run on Linux.