Skip to content

Commit 1b0064e

Browse files
committed
Fix test fallout
Signed-off-by: Peter Atashian <[email protected]>
1 parent 06c66d6 commit 1b0064e

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

src/test/run-make/c-link-to-rust-dylib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ all: $(TMPDIR)/$(call BIN,bar)
77

88
ifdef IS_MSVC
99
$(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
10-
$(CC) bar.c $(TMPDIR)/foo.lib $(call OUT_EXE,bar)
10+
$(CC) bar.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,bar)
1111
else
1212
$(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
1313
$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) -L $(TMPDIR)

src/test/run-make/c-link-to-rust-staticlib/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
ifneq ($(shell uname),FreeBSD)
55
all:
66
$(RUSTC) foo.rs
7-
cp $(TMPDIR)/libfoo.a $(call NATIVE_STATICLIB,foo2)
8-
$(CC) bar.c $(call NATIVE_STATICLIB,foo2) $(call OUT_EXE,bar) \
7+
$(CC) bar.c $(call STATICLIB,foo) $(call OUT_EXE,bar) \
98
$(EXTRACFLAGS) $(EXTRACXXFLAGS)
109
$(call RUN,bar)
11-
rm $(call STATICLIB,foo*)
10+
rm $(call STATICLIB,foo)
1211
$(call RUN,bar)
1312

1413
else

src/test/run-make/lto-smoke-c/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CC := $(CC:-g=)
55

66
all:
77
$(RUSTC) foo.rs -C lto
8-
$(CC) bar.c $(TMPDIR)/libfoo.a \
8+
$(CC) bar.c $(call STATICLIB,foo) \
99
$(call OUT_EXE,bar) \
1010
$(EXTRACFLAGS) $(EXTRACXXFLAGS)
1111
$(call RUN,bar)

src/test/run-make/output-type-permutations/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ all:
44
$(RUSTC) foo.rs --crate-type=rlib,dylib,staticlib
55
$(call REMOVE_RLIBS,bar)
66
$(call REMOVE_DYLIBS,bar)
7-
rm $(TMPDIR)/libbar.a
8-
rm -f $(TMPDIR)/bar.{exp,lib,pdb}
7+
rm $(call STATICLIB,bar)
8+
rm -f $(TMPDIR)/bar.{dll.exp,dll.lib,pdb}
99
# Check that $(TMPDIR) is empty.
1010
[ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
1111

@@ -78,7 +78,7 @@ all:
7878
rm $(TMPDIR)/$(call BIN,foo)
7979
$(RUSTC) foo.rs --crate-type=dylib --emit=link=$(TMPDIR)/$(call BIN,foo)
8080
rm $(TMPDIR)/$(call BIN,foo)
81-
rm -f $(TMPDIR)/foo.{exp,lib,pdb}
81+
rm -f $(TMPDIR)/foo.{dll.exp,dll.lib,pdb}
8282
[ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
8383

8484
$(RUSTC) foo.rs --crate-type=staticlib -o $(TMPDIR)/foo
@@ -133,7 +133,7 @@ all:
133133
rm $(TMPDIR)/bar.ll
134134
rm $(TMPDIR)/bar.s
135135
rm $(TMPDIR)/bar.o
136-
rm $(TMPDIR)/libbar.a
136+
rm $(call STATICLIB,bar)
137137
mv $(TMPDIR)/bar.bc $(TMPDIR)/foo.bc
138138
# Don't check that the $(TMPDIR) is empty - we left `foo.bc` for later
139139
# comparison.

src/test/run-make/static-dylib-by-default/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
TO_LINK := $(call DYLIB,bar)
44
ifdef IS_MSVC
5-
LINK_ARG = $(TO_LINK:dll=lib)
5+
LINK_ARG = $(TO_LINK:dll=dll.lib)
66
else
77
LINK_ARG = $(TO_LINK)
88
endif

0 commit comments

Comments
 (0)