1 MySQL ABI check assumes that with -nostdinc any standard #include terminates
2 preprocessing, but we do not provide that:
3 https://github.com/NixOS/nixpkgs/issues/44530
5 "#error" does not terminate preprocessing, so we #include a non-existent file instead.
7 --- a/cmake/do_abi_check.cmake
8 +++ b/cmake/do_abi_check.cmake
9 @@ -68,1 +68,1 @@ FOREACH(file ${ABI_HEADERS})
10 - -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${ABI_SOURCE_DIR}/include
11 + -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${ABI_SOURCE_DIR}/include/nostdinc -I${ABI_SOURCE_DIR}/include
12 @@ -74,1 +74,1 @@ FOREACH(file ${ABI_HEADERS})
13 - COMMAND ${WSL_EXECUTABLE} sed -e "/^# /d"
14 + COMMAND ${WSL_EXECUTABLE} sed -e "/^# /d" -e "/^#include <-nostdinc>$/d"
16 +++ b/include/nostdinc/stdint.h