build: Make it possible to compile tree-sitter with GCC 11 in 1 GB of RAM.

* gettext-tools/src/Makefile.am (libxgettextts1_a_CFLAGS,
libxgettextts2_a_CFLAGS): New variables.
This commit is contained in:
Bruno Haible 2025-04-02 14:13:11 +02:00
parent 4e82634a07
commit befbca48b0

View File

@ -244,11 +244,13 @@ libxgettextts1_a_SOURCES = \
libxgettextts1_a_CPPFLAGS = \
-I$(top_srcdir)/tree-sitter-$(TREE_SITTER_VERSION)/lib/include \
-I$(top_srcdir)/tree-sitter-$(TREE_SITTER_VERSION)/lib/src
libxgettextts1_a_CFLAGS = $(AM_CFLAGS) @FOREIGN_WARN_CFLAGS@ @NO_EXPENSIVE_WARN_CFLAGS@
libxgettextts2_a_SOURCES = \
../tree-sitter-rust-$(TREE_SITTER_RUST_VERSION)/src/rust-parser.c \
../tree-sitter-rust-$(TREE_SITTER_RUST_VERSION)/src/rust-scanner.c
libxgettextts2_a_CPPFLAGS = \
-I$(top_srcdir)/tree-sitter-$(TREE_SITTER_VERSION)/lib/include
libxgettextts2_a_CFLAGS = $(AM_CFLAGS) @FOREIGN_WARN_CFLAGS@ @NO_EXPENSIVE_WARN_CFLAGS@
# msggrep needs pattern matching.
LIBGREP = ../libgrep/libgrep.a