Skip to content

Commit

Permalink
Rust: Don't cache 'libformat_parser.a'
Browse files Browse the repository at this point in the history
	gcc/rust/
	* Make-lang.in (LIBFORMAT_PARSER): Point to the actual build artifact.
	($(LIBFORMAT_PARSER)): Don't cache it.
  • Loading branch information
tschwinge committed Apr 11, 2024
1 parent d8c5246 commit eb13962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gcc/rust/Make-lang.in
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,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

# The compiler itself is called crab1
crab1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBDEPS) $(LIBPROC_MACRO_INTERNAL) $(LIBFORMAT_PARSER) $(rust.prev)
Expand Down Expand Up @@ -424,7 +424,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
Expand Down

0 comments on commit eb13962

Please sign in to comment.