4 ms·
Cross-compiling is more convenient. If you have an amd64 desktop or aarch64 server, you can compile to amd64 and aarch64, and powerpc64 with almost the same co
by zX41ZdbW 4y ago
Cross-compiling is more convenient.
If you have an amd64 desktop or aarch64 server, you can compile to amd64 and aarch64, and powerpc64 with almost the same command. The binary without dependencies can be copied to the server with `scp`. This is the approach we use at ClickHouse[1]. Even more, we always do cross-compilation, even if the host and target architectures are identical. It allows making the build hermetic, not dependent on the environment of the host system.
[1] https://github.com/ClickHouse/ClickHouse/blob/master/PreLoad.cmake#L76 https://github.com/ClickHouse/ClickHouse/blob/master/PreLoad...