Skip to content

Commit 1f12fb1

Browse files
erthalionacmel
authored andcommitted
tools build: Emit dependencies file for test-rust.bin
Test it first by having rust installed, then removing it and building again. Fixes: 6a32fa5 ("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>
1 parent 84a654f commit 1f12fb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/build/feature/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ __BUILD = $(CC) $(CFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.c,$(@F)) $(
113113
__BUILDXX = $(CXX) $(CXXFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.cpp,$(@F)) $(LDFLAGS)
114114
BUILDXX = $(__BUILDXX) > $(@:.bin=.make.output) 2>&1
115115

116-
__BUILDRS = $(RUSTC) $(RUSTC_FLAGS) -o $@ $(patsubst %.bin,%.rs,$(@F))
116+
__BUILDRS = $(RUSTC) $(RUSTC_FLAGS) --emit=dep-info=$(patsubst %.bin,%.d,$(@F)),link -o $@ $(patsubst %.bin,%.rs,$(@F))
117117
BUILDRS = $(__BUILDRS) > $(@:.bin=.make.output) 2>&1
118118

119119
###############################

0 commit comments

Comments
 (0)