mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix: deps build for ARM64 MSVC
Problem: Neovim will not build for ARM64 using MSVC due to misconfigured gettext dependency build settings. Solution: Fix the dependency build settings for gettext when building with MSVC.
This commit is contained in:
parent
7de8bdaeb8
commit
7737f89206
@ -15,6 +15,10 @@ string(REPLACE "#undef HAVE_LONG_LONG_INT" "#define HAVE_LONG_LONG_INT 1" CONFIG
|
|||||||
string(REPLACE "#undef HAVE_ICONV_H" "#define HAVE_ICONV_H 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
string(REPLACE "#undef HAVE_ICONV_H" "#define HAVE_ICONV_H 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
string(REPLACE "#undef HAVE_ICONV" "#define HAVE_ICONV 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
string(REPLACE "#undef HAVE_ICONV" "#define HAVE_ICONV 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
string(REPLACE "#undef ICONV_CONST" "#define ICONV_CONST const" CONFIG_CONTENT ${CONFIG_CONTENT})
|
string(REPLACE "#undef ICONV_CONST" "#define ICONV_CONST const" CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
|
if(MSVC)
|
||||||
|
string(REPLACE "#undef HAVE_STDINT_H_WITH_UINTMAX" "#define HAVE_STDINT_H_WITH_UINTMAX 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
|
string(REPLACE "#undef HAVE_STDINT_H" "#define HAVE_STDINT_H 1" CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
|
else()
|
||||||
string(REPLACE "#undef uintmax_t" "
|
string(REPLACE "#undef uintmax_t" "
|
||||||
#if _WIN64
|
#if _WIN64
|
||||||
# define intmax_t long long
|
# define intmax_t long long
|
||||||
@ -24,6 +28,7 @@ string(REPLACE "#undef uintmax_t" "
|
|||||||
# define uintmax_t unsigned long
|
# define uintmax_t unsigned long
|
||||||
#endif"
|
#endif"
|
||||||
CONFIG_CONTENT ${CONFIG_CONTENT})
|
CONFIG_CONTENT ${CONFIG_CONTENT})
|
||||||
|
endif()
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gettext-runtime/config.h ${CONFIG_CONTENT})
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gettext-runtime/config.h ${CONFIG_CONTENT})
|
||||||
|
|
||||||
set(HAVE_NEWLOCALE 0)
|
set(HAVE_NEWLOCALE 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user