Skip to content

Commit 82b23be

Browse files
committed
Fix rustdoc-scrape-examples-macros test not being cross-platform
1 parent c62817b commit 82b23be

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

src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
-include ../../run-make-fulldeps/tools.mk
22

33
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
4+
DYLIB_NAME := $(shell echo | $(RUSTC) --crate-name foobar_macro --crate-type dylib --print file-names -)
45

56
all:
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) \

0 commit comments

Comments
 (0)