File tree 1 file changed +2
-1
lines changed
src/test/run-make-fulldeps/rustdoc-scrape-examples-macros
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
-include ../../run-make-fulldeps/tools.mk
2
2
3
3
OUTPUT_DIR := "$(TMPDIR ) /rustdoc"
4
+ DYLIB_NAME := $(shell echo | $(RUSTC ) --crate-name foobar_macro --crate-type dylib --print file-names -)
4
5
5
6
all :
6
7
$(RUSTC ) src/proc.rs --crate-name foobar_macro --edition=2021 --crate-type proc-macro --emit=dep-info,link
7
8
8
9
$(RUSTC) src/lib.rs --crate-name foobar --edition=2021 --crate-type lib --emit=dep-info,link
9
10
10
11
$(RUSTDOC) examples/ex.rs --crate-name ex --crate-type bin --output $(OUTPUT_DIR) \
11
- --extern foobar=$(TMPDIR)/libfoobar.rlib --extern foobar_macro=$(TMPDIR)/libfoobar_macro.so \
12
+ --extern foobar=$(TMPDIR)/libfoobar.rlib --extern foobar_macro=$(TMPDIR)/$(DYLIB_NAME) \
12
13
-Z unstable-options --scrape-examples-output-path $(TMPDIR)/ex.calls --scrape-examples-target-crate foobar
13
14
14
15
$(RUSTDOC) src/lib.rs --crate-name foobar --crate-type lib --output $(OUTPUT_DIR) \
You can’t perform that action at this time.
0 commit comments