xgettext: Rust: Fix xgettext-rust-stackovfl-* failures on MSVC 14/x86_64.

* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Add test-xfail.
* gettext-tools/src/Makefile.am (xgettext_LDFLAGS): On MSVC, use a larger
stack size.
This commit is contained in:
Bruno Haible 2025-01-29 12:05:42 +01:00
parent e10853e06c
commit 81add3eb2a
2 changed files with 12 additions and 0 deletions

View File

@ -328,6 +328,7 @@ if ! $skip_gnulib; then
javaexec-script
manywarnings
stdint-h
test-xfail
'
GNULIB_MODULES_TOOLS_LIBUNISTRING_TESTS='
unilbrk/u8-possible-linebreaks-tests

View File

@ -520,6 +520,17 @@ recode_sr_latin_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
hostname_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(pkglibexecdir)`
urlget_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(pkglibexecdir)`
cldr_plurals_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(pkglibexecdir)`
else
xgettext_LDFLAGS =
endif
# Link-time flags for particular programs.
# With MSVC 14/x86_64, the default stack size of 1 MB is sufficient only for
# a recursion depth in "xgettext -L Rust" invocations of 501. To guarantee a
# recursion depth of 1000, we need to increase the stack size. Cf.
# <https://learn.microsoft.com/en-us/cpp/build/reference/f-set-stack-size>.
if PLATFORM_IS_MSVC
xgettext_LDFLAGS += -Wl,/F4000000
endif
# Linking with C++ libraries is needed _only_ on mingw and Cygwin.