summaryrefslogtreecommitdiff
path: root/tools/build/feature
diff options
context:
space:
mode:
authorDmitry Dolgov <9erthalion6@gmail.com>2026-02-10 11:02:56 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-02-10 09:29:58 -0300
commit1f12fb138de81e63c1140689257548966cfb88a3 (patch)
tree5f93885866a72aa6e0ddcbbc421815786cf80639 /tools/build/feature
parent84a654f786414a74a15a7b61929d1ced06687310 (diff)
downloadlinux-next-1f12fb138de81e63c1140689257548966cfb88a3.tar.gz
linux-next-1f12fb138de81e63c1140689257548966cfb88a3.zip
tools build: Emit dependencies file for test-rust.bin
Test it first by having rust installed, then removing it and building again. Fixes: 6a32fa5ccd33da5d ("tools build: Add a feature test for rust compiler") Signed-off-by: Dmitry Dolgov <9erthalion6@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build/feature')
-rw-r--r--tools/build/feature/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
index cc53d4e5f8d8..e959caa7f1c7 100644
--- a/tools/build/feature/Makefile
+++ b/tools/build/feature/Makefile
@@ -113,7 +113,7 @@ __BUILD = $(CC) $(CFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.c,$(@F)) $(
__BUILDXX = $(CXX) $(CXXFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.cpp,$(@F)) $(LDFLAGS)
BUILDXX = $(__BUILDXX) > $(@:.bin=.make.output) 2>&1
-__BUILDRS = $(RUSTC) $(RUSTC_FLAGS) -o $@ $(patsubst %.bin,%.rs,$(@F))
+__BUILDRS = $(RUSTC) $(RUSTC_FLAGS) --emit=dep-info=$(patsubst %.bin,%.d,$(@F)),link -o $@ $(patsubst %.bin,%.rs,$(@F))
BUILDRS = $(__BUILDRS) > $(@:.bin=.make.output) 2>&1
###############################