Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use --crate-file-name to find out the library filename in dep-info test
  • Loading branch information
zargony committed Dec 22, 2013
1 parent 9b1e7db commit 5d0fea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/test/run-make/dep-info/Makefile
@@ -1,4 +1,5 @@
-include ../tools.mk

all:
$(RUSTC) --dep-info --lib lib.rs
sleep 1
Expand Down
8 changes: 2 additions & 6 deletions src/test/run-make/dep-info/Makefile.foo
@@ -1,10 +1,6 @@
ifeq ($(shell uname),Darwin)
LIBEXT=dylib
else
LIBEXT=so
endif
LIB := $(shell $(RUSTC) --crate-file-name --lib lib.rs)

$(TMPDIR)/libfoo-b517899a-0.1.$(LIBEXT):
$(TMPDIR)/$(LIB):
$(RUSTC) --dep-info --lib lib.rs
touch $(TMPDIR)/done

Expand Down

0 comments on commit 5d0fea1

Please sign in to comment.