diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-02-28 23:02:19 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 12:48:55 +0200 |
commit | 96a5c5bd28e069116321d471b685c16f7d1df636 (patch) | |
tree | d1b9863b15bc4a3f48be188a9892d05db72ae33b /gcc | |
parent | 7e1d64a5dc1ee69a822e748a53e9907631043b7a (diff) | |
download | gcc-96a5c5bd28e069116321d471b685c16f7d1df636.zip gcc-96a5c5bd28e069116321d471b685c16f7d1df636.tar.gz gcc-96a5c5bd28e069116321d471b685c16f7d1df636.tar.bz2 |
Rust: Don't cache 'libformat_parser.a'
gcc/rust/
* Make-lang.in (LIBFORMAT_PARSER): Point to the actual build artifact.
($(LIBFORMAT_PARSER)): Don't cache it.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/Make-lang.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index bcf424e..497a3c7 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -212,7 +212,7 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS) rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o LIBPROC_MACRO_INTERNAL = ../libgrust/libproc_macro_internal/libproc_macro_internal.a -LIBFORMAT_PARSER = rust/libformat_parser.a +LIBFORMAT_PARSER = $(srcdir)/../libgrust/libformat_parser/target/debug/liblibformat_parser.a RUST_LIBDEPS = $(LIBDEPS) $(LIBPROC_MACRO_INTERNAL) $(LIBFORMAT_PARSER) @@ -417,7 +417,6 @@ rust/%.o: rust/lex/%.cc # TODO: Improve `cargo` invocation with host specific flags, possibly creating a $(CARGO) variable? $(LIBFORMAT_PARSER): $(srcdir)/../libgrust/libformat_parser/Cargo.toml $(wildcard $(srcdir)/../libgrust/libformat_parser/src/*.rs) cd $(srcdir)/../libgrust/libformat_parser && cargo build --offline # FIXME: Not always release, right? - cp $(srcdir)/../libgrust/libformat_parser/target/debug/liblibformat_parser.a $@ # build all rust/parse files in rust folder, add cross-folder includes rust/%.o: rust/parse/%.cc |