mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
Addresses #2883. contrib/ * gcc_update (files_and_dependencies): Update for 'libformat_parser' in libgrust. gcc/rust/ * Make-lang.in (LIBFORMAT_PARSER): Point to 'libformat_parser' build in libgrust. (%.toml:, $(LIBFORMAT_PARSER):): Remove. libgrust/ * libformat_parser/Makefile.am: New. * Makefile.am [!TARGET_LIBRARY] (SUBDIRS): Add 'libformat_parser'. * configure.ac: Handle it. (TARGET_LIBRARY): New 'AM_CONDITIONAL'. * libformat_parser/Makefile.in: Generate. * Makefile.in: Regenerate. * configure: Likewise.
14 lines
427 B
Makefile
14 lines
427 B
Makefile
LIBFORMAT_PARSER = debug/liblibformat_parser.a
|
|
|
|
all-local: $(LIBFORMAT_PARSER)
|
|
|
|
# TODO: Improve `cargo` invocation with host specific flags, possibly creating a $(CARGO) variable?
|
|
$(LIBFORMAT_PARSER): $(srcdir)/Cargo.toml $(srcdir)/src/*.rs
|
|
cargo \
|
|
--config $(srcdir)/.cargo/config \
|
|
build \
|
|
--offline \
|
|
--target-dir . \
|
|
--manifest-path $(srcdir)/Cargo.toml \
|
|
# FIXME: Not always '--release', right?
|