This PR fixes some build issues introduced with the migration to CMake.
Windows - The CMake build defaults to dynamically linking the Windows CRT, although in parity we set it to link statically. The build.rs now check the crt-static feature to configure CMake accordingly.
ARM - The CMake build defaults to setting -march=native which doesn't work when cross-compiling. Defining PORTABLE=ON makes sure the RocksDB build doesn't set -march=native.
This PR fixes some build issues introduced with the migration to CMake.
build.rs
now check thecrt-static
feature to configure CMake accordingly.-march=native
which doesn't work when cross-compiling. DefiningPORTABLE=ON
makes sure the RocksDB build doesn't set-march=native
.