aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-12-14 21:29:13 +0100
committerMarc Poulhiès <dkm@kataplop.net>2022-12-14 21:57:04 +0100
commit404cdd1eeb6f473ef690ad780798800948f946ee (patch)
tree5b85fe4e758f8be19a0b23c76a390dd31aa012fd /gcc
parent3b89428c0d5710c8093055b3d92c543888759f93 (diff)
downloadgcc-404cdd1eeb6f473ef690ad780798800948f946ee.zip
gcc-404cdd1eeb6f473ef690ad780798800948f946ee.tar.gz
gcc-404cdd1eeb6f473ef690ad780798800948f946ee.tar.bz2
rust: fix link serialization [PR108113]
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/Make-lang.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in
index 36f0688..90da858 100644
--- a/gcc/rust/Make-lang.in
+++ b/gcc/rust/Make-lang.in
@@ -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
@@ -168,9 +170,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.