Facebook Patch for MySQL 8.0 macOS build - laurynas-biveinis/mysql-5.6 Wiki

Oracle MySQL 8.0 CMake options

For Oracle, Homebrew Boost installation takes precedence over -DWITH_BOOST=... option, and the build fails if the Homebrew Boost version is incompatible. A workaround is brew unlink boost, file a bug with Oracle.

Instructions at https://github.com/facebook/mysql-5.6/wiki/Build-Steps seem to be 5.6-centric, but this will be clear after 8.0 Linux build.

CMake options: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_SYSTEM_LIBS=ON -DMYSQL_MAINTAINER_MODE=ON -DDOWNLOAD_BOOST=ON -DWITH_BOOST=... -DWITH_ICU=/usr/local/opt/icu4c -DCMAKE_CXX_FLAGS="-Wno-shadow-field" -DCMAKE_C_FLAGS="-Wno-shadow-field" -DCMAKE_CXX_FLAGS_DEBUG="-Wno-shadow-field" -DCMAKE_C_FLAGS_DEBUG="-Wno-shadow-field" -DWITH_LZ4=bundled

Patches needed:

The patches fix https://jira.percona.com/browse/PS-2285