]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rust: fix link serialization [PR108113]
authorMarc Poulhiès <dkm@kataplop.net>
Wed, 14 Dec 2022 20:29:13 +0000 (21:29 +0100)
committerMarc Poulhiès <dkm@kataplop.net>
Tue, 20 Dec 2022 08:11:30 +0000 (09:11 +0100)
The Make-lang.in was missing the link serialization support.

PR rust/108113

gcc/rust
* Make-lang.in (rust.serial): New variable.
(rust1$(exeext)): Depend on $(rust.prev). Call LINK_PROGRESS.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gcc/rust/Make-lang.in

index 681ac7b3feed0a91862451138b3b17d31c7694e4..713582cfe0ce61a27512fe3474ab909283726222 100644 (file)
@@ -35,6 +35,8 @@ GCCRS_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gccrs|sed '$(pr
 # Define the names for selecting rust in LANGUAGES.
 rust: rust1$(exeext)
 
+rust.serial = rust1$(exeext)
+
 # Tell GNU make to ignore files by these names if they exist.
 .PHONY: rust
 
@@ -163,9 +165,11 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS)
 rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o
 
 # The compiler itself is called rust1 (formerly grs1)
-rust1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBDEPS)
+rust1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBDEPS) $(rust.prev)
+       @$(call LINK_PROGRESS,$(INDEX.rust),start)
        +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
              $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
+       @$(call LINK_PROGRESS,$(INDEX.rust),end)
 
 # Build hooks.