Skip to content

Commit d6fc366

Browse files
committed
Ignore test on MSVC for now
I can't figure out how to link with the MSVC toolchain
1 parent 83f96e8 commit d6fc366

File tree

1 file changed

+4
-1
lines changed
  • tests/run-make/staticlib-dylib-linkage

1 file changed

+4
-1
lines changed

tests/run-make/staticlib-dylib-linkage/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include ../tools.mk
22

3+
# ignore-msvc FIXME(bjorn3) can't figure out how to link with the MSVC toolchain
4+
35
all:
46
$(RUSTC) -C prefer-dynamic bar.rs
57
$(RUSTC) foo.rs --crate-type staticlib --print native-static-libs \
@@ -8,7 +10,8 @@ all:
810
cat $(TMPDIR)/libs.txt
911

1012
ifdef IS_MSVC
11-
$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.lib $$(cat $(TMPDIR)/libs.txt) $(call OUT_EXE,foo)
13+
$(CC) $(CFLAGS) /c foo.c /Fo:$(TMPDIR)/foo.o
14+
$(RUSTC_LINKER) $(TMPDIR)/foo.o $(TMPDIR)/foo.lib $$(cat $(TMPDIR)/libs.txt) $(call OUT_EXE,foo)
1215
else
1316
$(CC) $(CFLAGS) foo.c -L $(TMPDIR) -lfoo $$(cat $(TMPDIR)/libs.txt) -o $(call RUN_BINFILE,foo)
1417
endif

0 commit comments

Comments
 (0)