File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/run-make-fulldeps/rustdoc-scrape-examples-macros Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11-include ../../run-make-fulldeps/tools.mk
22
33OUTPUT_DIR := "$(TMPDIR ) /rustdoc"
4+ DYLIB_NAME := $(shell echo | $(RUSTC ) --crate-name foobar_macro --crate-type dylib --print file-names -)
45
56all :
67 $(RUSTC ) src/proc.rs --crate-name foobar_macro --edition=2021 --crate-type proc-macro --emit=dep-info,link
78
89 $(RUSTC) src/lib.rs --crate-name foobar --edition=2021 --crate-type lib --emit=dep-info,link
910
1011 $(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) \
1213 -Z unstable-options --scrape-examples-output-path $(TMPDIR)/ex.calls --scrape-examples-target-crate foobar
1314
1415 $(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